We've all had that problem:
<https://quality.livecode.com/show_bug.cgi?id=22790>

On 6/23/20 6:53 PM, Dan Friedman via use-livecode wrote:
Ralph,

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!

-Dan


On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
<use-livecode-boun...@lists.runrev.com on behalf of use-livecode@lists.runrev.com> 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?

     Thanks

     Ralph DiMola
     IT Director
     Evergreen Information Services
     rdim...@evergreeninfo.net



     _______________________________________________
     use-livecode mailing list
     use-livecode@lists.runrev.com
     Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
     http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to