ios keyboard popping up

Bringing your stacks to the web

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
Wally
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 36
Joined: Sun Jun 15, 2008 4:51 pm
Location: Albany, NY

ios keyboard popping up

Post by Wally » Thu Apr 12, 2018 6:47 pm

Anyone know a js trick to stop the built in ios keyboard from popping up no matter what control one touches? Of course we want this behavior for text input flds but not everything! My fairly complex HTML5 app works acceptably well(sorta) except for this problem.

gstrekkie
Posts: 27
Joined: Tue Aug 20, 2013 11:43 pm

Re: ios keyboard popping up

Post by gstrekkie » Mon May 14, 2018 3:51 pm

I too am experiencing this issue and was looking for a solution!

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1680
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: ios keyboard popping up

Post by [-hh] » Mon May 21, 2018 10:45 am

HTML5 standalones are not (really) made for mobile. So I have only very few experiences with very simple tests.

Did you already try the following?

Code: Select all

on mouseUp
   focus on nothing
   -- your code
on mouseUp
shiftLock happens

gstrekkie
Posts: 27
Joined: Tue Aug 20, 2013 11:43 pm

Re: ios keyboard popping up

Post by gstrekkie » Mon May 21, 2018 3:24 pm

Yes I too came across that solution however it doesn’t seem to work for me. If someone else has had any luck let me know perhaps I am not implementing it correctly. Thanks

Wally
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 36
Joined: Sun Jun 15, 2008 4:51 pm
Location: Albany, NY

Re: ios keyboard popping up

Post by Wally » Tue May 22, 2018 5:31 pm

The app works reasonably well on my iPad with tons of things going on and hundreds of controls.

The "focus on nothing" in mouseUp works for btns but not cards or groups or other controls. Hopefully it can be fixed soon because the app does work on Mobile(iPad) except for this!

I was hoping some javascript expert could rescue us.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1680
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: ios keyboard popping up

Post by [-hh] » Tue May 22, 2018 11:12 pm

Wally wrote:the app does work on Mobile(iPad) except for this.
That's probably one reason that HTML5 standalones are not advertised for mobile usage.
Wally wrote:I was hoping some javascript expert could rescue us.
It is very simple to catch events by JavaScript. But for using these catched events you better write the whole app using JavaScript.
shiftLock happens

Post Reply

Return to “HTML5”