help with mobileSetKeyboardType

Devin Asay devin_asay at
Thu Sep 26 14:45:35 EDT 2019


I believe it’s because setting keyboard type with a mobile native control is done by setting a property with mobileControlSet:

mobileControlCreate "input","_editingField”
mobileControlSet “input”, “keyboardType”, “number”

The mobileSetKeyboardType command works in all other circumstances, including with native LiveCode fields.


> On Sep 26, 2019, at 12:31 PM, Dan Friedman via use-livecode <use-livecode at> wrote:
> I am having some trouble with mobileSetKeyboardType.  Can anyone tell me why mobileSetKeyboardType works with this:
> mobileSetKeyboardType "number"
> ask "Enter a number"
> But it doesn’t work with this:
> mobileSetKeyboardType "number"
> mobileControlCreate "input","_editingField"
> mobileControlSet "_editingField","rect","20,20,200,60"
> mobileControlSet "_editingField","text","123"
> mobileControlSet "_editingField","visible",true
> mobileControlDo "_editingField","focus"
> Doesn't seem to matter what I set mobileSetKeyboardType to or when I set it.  It always shows the "normal" keyboard.
> Using LiveCode Business 9.5.0, testing on a iPhone X
> -Dan
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Devin Asay
Office of Digital Humanities
Brigham Young University

More information about the use-livecode mailing list