Many devices have both hardware keyboards as well as a software keyboard.
In Fennec, we need to know if we should ask Windows to display the software keyboard when the user clicks in a text box. For example, if the device has a hardware keyboard exposed to the user (in that they see it in front of them), we don’t want to show the software keyboard.
I have tried:
1) HKCU\Software\Microsoft\Shell\HasKeyboard. This value stays the same no matter if the keyboard slide to the open position or not.
2) GetKeyboardStatus(). Same as above
3) Smart Auto-Deploy event. I tried listening for the “_KeyPress” event. That seems to work fine (I know that a key was pressed on the hardware keyboard), but it really doesn’t tell you if the keyboard has been slide closed again.
Anyone know how to do this?
2 Comments
We can check the current state of slide out keyboard from the registry
“HKEY_LOCAL_MACHINE\System\GDI\Rotation\Slidekey”
https://bugzilla.mozilla.org/show_bug.cgi?id=341772#c25
http://www.hlcsuperstore.com/computers_input-devices_keyboards.html