termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
36.99k stars 3.89k forks source link

[Bug]: termux not recognizing caps-lock as ctrl on physical keyboard #4281

Open alhansrisuk opened 4 days ago

alhansrisuk commented 4 days ago

Problem description

hello, i am having trouble with using caps lock as ctrl for copying / pasting (ctrl-c and ctrl-v) in termux. i am running it on a galaxy s9 tab with the slim keyboard attachment. it works fine in the OS since i've remapped Caps Lock to Ctrl in the System Settings under Physical Keyboard but it doesn't seem to be recognized in termux or termux x11. i'm not sure if this issue is specific to the slim keyboard cover from Samsung.

i'm unsure if the on screen keyboard is overriding the physical input for some reason but i've tried enabling the flag enforce-char-based-input = true in my termux.properties

Steps to reproduce the behavior.

connect physical keyboard to device and go to System -> General management -> Physical keyboard -> Customize keys

remap Caps lock to Ctrl

go into termux and try to paste from clipboard using Caps + V

What is the expected behavior?

No response

System information