Type Function Object TextField Library native.* Return value none Revision Release 2024.3703 Keywords setReturnKey, native text input
Sets the return key value on the keyboard.
On iOS, setting the return key to "next"
will not make the OS jump to the next input field/box when the return key is pressed. However, on Android, this behavior will occur. When using a key value of "next"
, you should implement a specific focus method using native.setKeyboardFocus() to ensure that the focus passes to the correct field.
Setting the return key to "done"
causes no button to show up on the original Kindle Fire.
Key | iOS | Android |
---|---|---|
"done" |
✓ | ✓ |
"go" |
✓ | ✓ |
"next" |
✓ | ✓ |
"search" |
✓ | ✓ |
"send" |
✓ | ✓ |
"none" |
✓ | |
"default" |
✓ | |
"join" |
✓ | |
"route" |
✓ | |
"emergencycall" |
✓ |
local textField = native.newTextField( 30, 140, 260, 150 ) textField:setReturnKey( "done" )