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?
on-screen keyboard
Re: on-screen keyboard
Answering myself.
Appearing and retracting the on-screen keyboard triggers the #PB_Event_SizeWindow event
Appearing and retracting the on-screen keyboard triggers the #PB_Event_SizeWindow event
2B or not 2B = FF
-
- Posts: 284
- Joined: Fri Sep 22, 2017 7:02 am
Re: on-screen keyboard
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
Can you give me an example of a mobile device and browser for which the overlay applies?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.
2B or not 2B = FF
-
- Posts: 284
- Joined: Fri Sep 22, 2017 7:02 am
Re: on-screen keyboard
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
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)
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
Re: on-screen keyboard
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