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

[Bug]: Can't switch USB keyboard language in fcitx5

Open hansm629 opened this issue 10 months ago • 8 comments

Problem description

Screenshot_2024-04-09_21-47-08 Screenshot_2024-04-09_21-47-54

pkg install fcitx5*

In the Termux native XFCE desktop environment (Samsung DeX Mode) After installing fcitx5 using the above command,

From USB keyboard Via Shift + Space or Ctrl + Spece or right Alt key I tried switching between Korean and English, but it doesn't work.

Screenshot_20240409_220401_TermuxX11

Even though “Prefer scancodes” is set in Termux-X11 It doesn't work.

in 'PRoot-Distro Debian environment` If you test it after installing ibus or fcitx5,

Shift + Space or Ctrl + Spece or right Alt key Switching between Korean and English works very well.

If this symptom is not a bug Are there any settings I missed?

Come to think of it Generally, in Linux, there is a separate fcitx5-hangul package for Korean language support. It appears that this package does not exist in fcitx5 ported to Termux.

Could this have anything to do with it?

What steps will reproduce the bug?

  • Install all fcitx5 packages in Termux
  • Added Korean keyboard in fcitx5 settings
  • Language switching key setting (Shift+Space or Ctrl+Spece or Right Alt)
  • Added automatic execution of fcitx5 upon login in XFCE session.
  • Even if you press the language switch key set in fcitx5 on the USB keyboard, it does not switch to Korean.
  • Korean switching on USB keyboard works well with fcitx5 and ibus in PRoot Linux environment.

What is the expected behavior?

There is nothing left to guess.

System information

termux-info:

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=22732
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirrors.pku.edu.cn/termux/termux-main/ stable main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# x11-repo (sources.list.d/x11.list)
deb https://mirrors.pku.edu.cn/termux/termux-x11/ x11 main
Updatable packages:
termux-x11-nightly/x11 1.03.00-4 all [upgradable from: 1.03.00-0]
termux-tools version:
1.42.0
Android version:
14
Kernel build information:
Linux localhost 6.1.43-android14-11-abS926NKSU1AXCA #1 SMP PREEMPT Sun Mar 17 10:24:49 UTC 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-S926N
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.widget versionCode:13
com.termux.x11 versionCode:14
com.termux.api versionCode:51

hansm629 avatar Apr 15 '24 16:04 hansm629