Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Keypad nums recognized as num keys

Open Mirarchi opened this issue 1 year ago • 2 comments

While sending the numeric values in keypad, i would expect to receive a specific keypad keycode (keycode.numpad0, keycode.numpad1 and so on) instead of receiving num keys (Keycode.num1, Keycode.num2 and so on) . This makes impossible making custom character combinations (for example leftAlt+0123 for '{' character). Any clue on this?

Thanks

Mirarchi avatar Jul 26 '24 14:07 Mirarchi

Would Android recognize such sequences ? Have you tried with an other virtual virtual keyboard or a physical one ?

Related issue about sending key events: https://github.com/Julow/Unexpected-Keyboard/issues/717 Related issue about alt codes: https://github.com/Julow/Unexpected-Keyboard/issues/191 https://github.com/Julow/Unexpected-Keyboard/issues/686

Julow avatar Jul 26 '24 22:07 Julow

Yes, android ( at least in version 11) recognizes those sequences. Already tested with another keyboard (such as Hacker Keyboard) and this works. Thanks.

Mirarchi avatar Jul 27 '24 07:07 Mirarchi

That doesn't immediately solve your issue but with 2060e6a you can now add keypad buttons to your custom layouts:

:keyevent symbol='0':144

Key event numbers for keypad numbers are here: https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_NUMPAD_0

Julow avatar Dec 08 '24 10:12 Julow