lib/calabash-cucumber/keyboard_helpers.rb in calabash-cucumber-0.9.166 vs lib/calabash-cucumber/keyboard_helpers.rb in calabash-cucumber-0.9.167
- old
+ new
@@ -237,11 +237,13 @@
# on iOS 7, the Delete char code is \b on non-numeric keyboards
# on numeric keyboards, it is actually a button on the
# keyboard and not a key
if code.eql?(UIA_SUPPORTED_CHARS['Delete'])
uia("uia.keyboard().elements().firstWithName('Delete').tap()")
+ elsif code.eql?(UIA_SUPPORTED_CHARS['Return'])
+ tap_keyboard_action_key
else
- uia_type_string(code)
+ uia_type_string(code, '')
end
end
res = {'results' => []}
else
res = http({:method => :post, :path => 'keyboard'},