-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
Problem description
With a USB keyboard, the numpad arrow keys don't work as arrow keys in termux when numlock is off
In other places in the Android OS, for instance in the Settings app, the numpad works as expected (that is, the arrow keys move the selection around in the corresponding direction when num lock is off, and type the corresponding numbers when num lock is on)
Steps to reproduce
- Launch termux; an ordinary shell prompt comes up
- Connect an ordinary USB HID keyboard to the android device
- If the keyboard's num lock status light is on, press the num lock key until the num lock status light is off
- Press the numpad arrow keys.
Observed behaviour: the arrow keys on the numpad act as numbers whether or not num lock is on
Expected behavior
The arrow keys on the numpad act as arrow keys, for instance up and down navigate through the command history in bash
Additional information
- Termux application version: 0.101, play store version
- Android OS version: 9 (FireOS 7.3.1.7)
- Device model: Amazon Fire HD 10 (2019 version)
For background:
These extra functions are typical on PC and similar keyboards with numeric keypads.
https://en.wikipedia.org/wiki/IBM_PC_keyboard#/media/File:Brazilian_104-key_ABNT2_keyboard.jpg
https://deskthority.net/wiki/images/8/8d/Suntype5.jpg
On the original layouts (e.g. IBM Model F, Sun Type 4) there is no separate arrow cluster; the only way to type an arrow is with the keypad:
https://deskthority.net/wiki/images/8/84/IBM_XT_top.JPG