How can I capture hardware keyboard events without using the EditText field?
For example, in a simple action, display a square on the screen when “B” is pressed on the slide keyboard. I want to turn it blue when "G" presses, turns it to green, etc.
I don't need help with the color code, just how to intercept a keystroke
This is not about a soft or virtual keyboard.
source
share