Page 1 of 1
on-screen keyboard
Posted: Sat Nov 26, 2022 9:18 am
by useful
How do I catch when the on-screen keyboard appears in the mobile browser?
And how do I know the area of the screen it covers?
Re: on-screen keyboard
Posted: Sat Dec 03, 2022 9:13 am
by useful
Answering myself.
Appearing and retracting the on-screen keyboard triggers the #PB_Event_SizeWindow event
Re: on-screen keyboard
Posted: Mon Dec 05, 2022 8:19 am
by Dirk Geppert
But you have to be careful. There are two ways to show the keyboard. One is by reducing the size of the viewport and the other is as an overlay. In the latter case, the size of the viewport does not change.
Re: on-screen keyboard
Posted: Mon Dec 05, 2022 9:11 am
by useful
Dirk Geppert wrote: Mon Dec 05, 2022 8:19 am
But you have to be careful. There are two ways to show the keyboard. One is by reducing the size of the viewport and the other is as an overlay. In the latter case, the size of the viewport does not change.
Can you give me an example of a mobile device and browser for which the overlay applies?
Re: on-screen keyboard
Posted: Tue Dec 06, 2022 7:55 am
by Dirk Geppert
Unfortunately, I can't help you with that. I only know this as a problem with web app development. That the keyboard behaviour was sometimes different.
Re: on-screen keyboard
Posted: Wed Dec 07, 2022 6:27 am
by useful
iphone 6: Portrait 375*553, Landscape 667*375
iphone 8 plus: Portrait 414*622 Landscape 736*331
iphone 12 pro max: Portrait 428*746 Landscape 832*345
iPad 6 Portrait 768*954 Landscape 1024*698
And the values do not change when the on-screen keyboard appears.
Therefore, the question remains relevant, but with a clarification: how to learn the area overlapped by the on-screen keyboard in Safari on the iPhone, iPad?
Translated with
www.DeepL.com/Translator (free version)
Re: on-screen keyboard
Posted: Sat Dec 10, 2022 9:29 am
by useful
Also encountered a situation where in the horizontal position the size of W*H changes, but does not correspond to the actual values of the area overlapped by the on-screen keyboard.