这是indexloc提供的服务,不要输入任何密码
Skip to content

numpad arrow keys #1881

@rakslice

Description

@rakslice

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

  1. Launch termux; an ordinary shell prompt comes up
  2. Connect an ordinary USB HID keyboard to the android device
  3. If the keyboard's num lock status light is on, press the num lock key until the num lock status light is off
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions