How to dismiss keyboard on mobile

J. Landman Gay jacque at hyperactivesw.com
Thu May 10 17:44:51 EDT 2018


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 hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list