Keyboard:enter()
Press Enter in the focused field, like the keyboard's Enter key.
Signature
Keyboard:enter(): boolean
Returns
boolean - true when Enter was sent, false when there was no field to press it in.
Description
In a multi-line field (a note, a chat box) this inserts a line break. In a single-line field it presses the action key (Search, Go, Send, Done). On a web page it becomes a real Enter key so the site's own editor handles it. With Native (root) mode it sends the Enter key event.
A missing field is not an error: the method returns false, in the same way type() does
nothing when no field is focused.
Example
Keyboard:type("search terms")
Keyboard:enter()
Compatible Version: 1.0.0.37 and up