termux-app icon indicating copy to clipboard operation
termux-app copied to clipboard

[Bug]: physical keyboard Fn key not work

Open sentinel3 opened this issue 2 years ago • 4 comments

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

sentinel3 avatar Feb 22 '22 19:02 sentinel3

I'm having the same problem.

ursi avatar Jun 07 '22 15:06 ursi

I'm having the same problem.

Stating this without providing any specific info does not help with trouble shooting please provide some helphul info

  • The REQUIRED stuff per the issue template
  • additionally USB or BLUETOOTH
  • Language setting ie. echo $LANG
  • OTHER?

ChiefMikeK avatar Jun 08 '22 05:06 ChiefMikeK

I was simply just trying to add some weight behind this issue, but sure, I'll give my info

  • Termux application version: 0.118.0, F-Droid
  • Android OS version: 11 - 4.19.157
  • Device model: Onyx Boox Max Lumi 2
  • USB-C keyboard
  • LANG=en_US.UTF-8

ursi avatar Jun 08 '22 12:06 ursi

What I tried:

    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'

"monitor the key event" how is that done? What program does "monitor" the key events here?

sp4rkie avatar Jun 22 '22 09:06 sp4rkie