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

[Bug]: physical keyboard Fn key not work #2611

@sentinel3

Description

@sentinel3

Problem description

I posted on the discussion but not received a feedback, so re-post here with some further details.

I use a Samsung s7+ tablet (android 12, kernel: 4.19.113, Termux via F-droid: 0.118.0), and a physical keyboard (Apple magic keyboard2) connected via bluetooth. The keyboard works with other apps on the Fn key combinations.
in Termux, all the Fn combs are not work: when I press Fn+ Key, it flashes very fast with the menu popup window as I screenshot in the other post, but not give expected keys. Specifically I mean: Fn+Left, Fn+Right, Fn+Backescape for Home, End, and Delete.

What I tried:

  1. monitor the key event, such as Fn+Left to see the keycodes:
KeyDown     : action=0 code=119 repeat=0 meta=2097160 scanCode=464 flags=8 label='0' chars='null' number='0'
KeyUp       : action=1 code=122 repeat=0 meta=2097160 scanCode=102 flags=8 label='0' chars='null' number='0'
KeyUp       : action=1 code=119 repeat=0 meta=2097152 scanCode=464 flags=8 label='0' chars='null' number='0'
  1. tried to add customized key in the ~/.termux/termux.properties: such as HOME=FN+LEFT, not work
  2. try to modify /system/usr/keychars/Generic.kcm, according another post but not allowed since I am not a root user.

any suggestion please?

Steps to reproduce the behavior.

as described above

What is the expected behavior?

No response

System information

  • Termux application version: 0.118.0 (Termux via F-droid)
  • Android OS version:12 , kernel: 4.19.113
  • Device model:SM-T970

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