on-screen keyboard

Just starting out? Need help? Post your questions and find answers here.
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

on-screen keyboard

Post 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?
2B or not 2B = FF
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: on-screen keyboard

Post by useful »

Answering myself.
Appearing and retracting the on-screen keyboard triggers the #PB_Event_SizeWindow event
2B or not 2B = FF
Dirk Geppert
Posts: 282
Joined: Fri Sep 22, 2017 7:02 am

Re: on-screen keyboard

Post 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.
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: on-screen keyboard

Post 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?
2B or not 2B = FF
Dirk Geppert
Posts: 282
Joined: Fri Sep 22, 2017 7:02 am

Re: on-screen keyboard

Post 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.
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: on-screen keyboard

Post 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)
2B or not 2B = FF
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: on-screen keyboard

Post 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.
2B or not 2B = FF
Post Reply