How to dismiss keyboard on mobile

Tore Nilsen tore.nilsen at
Thu May 10 18:02:21 EDT 2018

You could also try:

on returnInField

focus on nothing

end returnInField

in the field script. That seems to do the trick on desktop at least, whereas on returnKey does not when it is placed in the field script.

Tore Nilsen

> 10. mai 2018 kl. 23:44 skrev J. Landman Gay via use-livecode <use-livecode at>:
> On 5/10/18 4:21 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
>> Really… putting this  in the field should dismiss the keyboard
>> on returnKey
>>    closeField
>>    exitField
>> end returnKey
> These are engine messages, not commands. They are sent when the user does something, and it's up to the script to do what is required. It's the same as "mouseUp" -- it doesn't do anything, it simply informs you that the mouse was clicked.
> You could try this instead:
> on returnKey
>  focus on nothing
> end returnKey
> That's probably better than my other suggestion.
> -- 
> Jacqueline Landman Gay         |     jacque at
> HyperActive Software           |
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list