How do I keep textbox focused/osk active? [mobile browsers]

Get help using Construct 2

Post » Sat Jun 25, 2016 11:26 pm

I have an issue where upon focusing on a textbox to input on mobile (android, chrome), the on screen keyboard will come up and push the textbox off screen. This results in the textbox getting unfocused, and the on screen keyboard going away.

On a friend's phone (ios, safari), there was the alternative strange behavior where the textbox would get pushed off screen and stay active, but only one digit could be entered.

Can anyone help me confirm that this happens across other devices and if so, any ideas how should I address it?

To replicate, scroll down to the bottom and select one of the uppermost textboxes. It works fine if you select one in the middle or bottom of the screen. The problem only occurs when the osk pushes the active textbox off screen.

Capx: https://www.dropbox.com/s/6rpnt4qtghmo3 ... .capx?dl=0

At the bottom was an attempt to keep the screen in the same position when the keyboard comes up, but that didn't quite work either. The screen would stay in place, but the osk would pop up and disappear.
Mistakes were made.
B
52
S
26
G
108
Posts: 1,605
Reputation: 61,131

Post » Sat Jun 25, 2016 11:46 pm

I totally had the same problem with IOS on the iPad and iPhone. Upon searching it seemed this was an android issue, not an IOS issue, but something changed and now it is both.
The good news is there is a fix, I tried it and it worked. Here's a link: viewtopic.php?f=147&t=177273&p=1048272#p1048272
correncec was nice enough to put step by step instructions, which really saved the day for me :)
B
11
S
3
Posts: 52
Reputation: 791

Post » Sun Jun 26, 2016 12:38 am

Thanks for that! I'll give it a shot and see how it goes for html5 export.
Mistakes were made.
B
52
S
26
G
108
Posts: 1,605
Reputation: 61,131


Return to How do I....?

Who is online

Users browsing this forum: ditocruz, uzumiapps and 28 guests