Shift state on hardware keyboard

// Expert user has replied.
J Jiri Mikeska 2 years 5 months ago
29 6 0

Please, is it possible, programmatically, to check whether Shift key on hardware keyboard is "on" or "locked" on Android 11 on device MC2200?

Please Register or Login to post a reply

6 Replies

A Alfred Teixeira

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

J Jiri Mikeska

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 "+-@/#:,~!").

J Jiri Mikeska

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.)

E Edward Correia

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-…

J Jiri Mikeska

No, this don't help and this is not related to my question. This is user manual. But I am software developer.

CONTACT
Can’t find what you’re looking for?