Please, is it possible, programmatically, to check whether Shift key on hardware keyboard is "on" or "locked" on Android 11 on device MC2200?
Shift state on hardware keyboard// Expert user has replied. |
Shift state on hardware keyboard// Expert user has replied.Please, is it possible, programmatically, to check whether Shift key on hardware keyboard is "on" or "locked" on Android 11 on device MC2200? |
Subscribe to email updates
Monthly updates from our Zebra development team, straight to your inbox.
6 Replies
Hello,
Please review the information available at the following link and let us know if this information provides what you require:
https://developer.android.com/reference/android/media/MediaDrm.KeyStatus
Thank you
AT
This is related to Media DRM not to hardware keyboard.
I already tried to search some informations about it, but found nothing (zebra web site, stackoverflow.com, developer.android.com).
There simply does not exist any api with which it would be possible to determine the status of Hardware keyboard (not onscreen keyboard) on MC2200.
- Whether is active or locked Shift state - important for me.
- Whether is active typing "abc" letters - important for me.
- Whether is active Alt state.
- Whether is active Ctrl state.
- And whether is active Diamond key - important for me too (after pressing diamond key on hardware keyboard on display is showed menu with letters "+-@/#:,~!").
Hello,
I believe this is the approach you will need to take:
https://developer.android.com/training/keyboard-input/commands
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey
https://stackoverflow.com/questions/11659801/java-check-if-control-key-…
Thank you
A T
https://developer.android.com/training/keyboard-input/commands
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey
https://stackoverflow.com/questions/11659801/java-check-if-control-key-…
event.isShiftPressed and similar (for example event.isControlDown()) is related to concrete key message, is NOT related to shift state of the whole hardware keyboard. I already know about it, but I don't need it (I use these, but for different things).
Explanation: Zebra don't offer any api for controlling state of hardware keyboard. Therefore I have created my own controlling, but for this I need to know the state of the WHOLE hardware keyboard (whether Shift is on or locked, whether is enabled typing "abc" or "123" etc.)
I don't know if this will help, but here are links to the MC2200 Product Reference Guide
PDF: https://www.zebra.com/content/dam/zebra_new_ia/en-us/manuals/mobile-com…;
HTML: https://docs.zebra.com/content/tcm/us/en/mobile-computers/handheld/mc2-…
No, this don't help and this is not related to my question. This is user manual. But I am software developer.