termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
1.96k stars 301 forks source link

Termux x11 does not recognize keyboard layout #311

Closed Yisus7u7 closed 1 year ago

Yisus7u7 commented 1 year ago

When using a keyboard connected by Bluetooth or cable, and configuring it with the appropriate layout, it works normally in any app, even termux, but in termux x11 the keyboard does not.

In termux x11 the entered text does not match the keys pressed, this is very annoying, And you can't change

twaik commented 1 year ago

Termux:X11 receives input through [SurfaceView](https://developer.android.com/reference/android/view/SurfaceView) which is not recognised as text editor (like [EditText](https://developer.android.com/reference/android/widget/EditText)). That is the reason the app receives only keycodes and not unicode characters. Also that means the app can use real (translated) scancodes and acts accordingly. In the case if you need to work with different keyboard layouts you should set them with setxkbmap or with DE settings.