How to register an event listener for the appearance / disappearance of virtual keyboard events in a Blackberry Playbook using Flex?

Not because no one complained about it, but I have a lot of problems with the Blackberry Playbook virtual keyboard on the simulator.

I have a richedit component in the middle of the screen, and as soon as the virtual keyboard appears in the text, it completely hides the text input. I would like to move the text when the keyboard appears / disappears. Is there any way to do this? I don't want to guess with the focus_in and focus_out events on richedit. I tried and it is not very reliable.

Thank you in advance!

+4
source share
1 answer

We expect that the next release of the SDK (long overdue, but, I think, inevitable) will provide much more complete support for the virtual keyboard. Until this happens, I think it's a waste of time to try and do something special with her.

I also think that there is a chance that it will automatically move your whole scene when it hides text input, so you may still not have to do anything.

Change I actually posted a code in January describing an undocumented way to support this using some rudimentary support for PPS. It also shows how you can programmatically control the opening and closing of the keyboard. I do not recommend it for real code yet ...

0
source

Source: https://habr.com/ru/post/1334797/


All Articles