termux-app
termux-app copied to clipboard
[Bug]: physical keyboard Fn key not work
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:
- 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'
- tried to add customized key in the
~/.termux/termux.properties
: such asHOME=FN+LEFT
, not work - 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
I'm having the same problem.
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?
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
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?