passReturnKey

Typeproperty
Dictionaryandroid.field
LibraryAndroid Native Field
Syntax
set the passReturnKey of <widget> to {true|false}
get the passReturnKey of <widget>
Associationscom.livecode.widget.native.android.field
Summary

Whether the return key adds a new line to the field

OSandroid
Example
command createField
   create widget as "com.livecode.widget.native.android.field"
   set the passReturnKey of it to false
end createField

-- In the widget script
on returnKey
   answer "You entered" && the text of the target
end returnKey
Description

Use the passReturnKey property to control whether the native keyboard return key adds a new line to the field or not.