Mobile Keyboard

Ralph DiMola rdimola at
Wed Jun 24 10:09:11 EDT 2020


Thanks! I was fiddling with the lockText property earlier and it did not seem to work. The field does predictive typing. I discovered that keyDown and rawKeyDown messages are still sent even if lockText is true. I had to put this code at the top of both rawKeyDown and keyDown handlers to prevent data entry into the field..

if the lockText of me then 
 pass keyDown/rawKeyDown
end if

Still learning...

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at

-----Original Message-----
From: Dan Friedman [mailto:dan at] 
Sent: Tuesday, June 23, 2020 7:54 PM
To: How to use LiveCode
Cc: Ralph DiMola
Subject: Re: Mobile Keyboard


I had this same issue on a project.  The problem is when the card/stack opens, LiveCode want to activate the first typable field it finds.  If my old memory is correct, what I did was this:

on preOpenCard
	set the lockText of fld "thisDarnField" to true	
end preOpenCard

on openCard
	send "doUnlockTheField" to this card in 1 tick //don't send this until everything is done loading (you could probably send this in the preOpenCard too) end openCard

on doUnlockTheField
	set the lockText of fld "thisDarnField" to false end doUnlockTheField

Hope that helps and I hope it works!   I hope my cobweb-ridden brain remembers this correctly!


On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" <use-livecode-bounces at on behalf of use-livecode at> wrote:

    I have a card with one focusable input field.
    How can I keep the keyboard from opening until the user taps into the field?

    I tried putting "focus on nothing"s in various places such as preopencard
    and opencard with no success?

    I think this has been discussed before. Was there ever a solution for both
    iOS and Android?


    Ralph DiMola
    IT Director
    Evergreen Information Services
    rdimola at

    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