*INPUT TEXT: already implemented* (no need to use perform_action(send_text("text))
def keyboard_enter_text(text)
# escape all non-alphanumeric characters with \
processed_text = text.gsub(/([^\w\s])/) { |c| '\\' + c }
# replace spaces with %s
processed_text = processed_text.gsub(' ', '%s')
input_command = "#{default_device.adb_command} shell input text #{processed_text}"
raise "Could not send keyboard text: #{text}" unless system(input_command)
end
*INPUT KEY_EVENT: Not implemented (I believe)*
def keyboard_enter_event(event)
input_command = "#{default_device.adb_command} shell input keyevent #{processed_text}"
raise "Could not send keyboard text: #{text}" unless system(input_command)
end