Problem description
When an external/physical keyboard (Bluetooth or USB) is connected to my Android tablet, Termux only accepts ASCII input. The system IME is switched to a Chinese input method (e.g. GBoard Pinyin, Trime/Rime), which works fine in other apps and even in Termux when the physical keyboard is not connected. But once the hardware keyboard is attached, Termux keeps receiving raw keystrokes and never shows the IME candidate bar, so typing Chinese is impossible.
Workarounds that partially work but are not real fixes:
Swiping the extra-key bar to reveal the text input view and pasting/candidates there.
Toggling "Show on-screen keyboard while hardware keyboard is attached" in Android settings + dragging the soft keyboard up manually.
enforce-char-based-input = true does not enable IME composition.
None of these let me compose Chinese directly through the physical keyboard like other Android apps do.
Steps to reproduce the behavior.
Connect a physical keyboard to an Android tablet/phone.
Set system IME to GBoard (or Trime) with a Chinese scheme active.
Open Termux.
Try to type Chinese characters via the physical keyboard (or via the IME switch hotkey).
Only English/ASCII letters appear; no composition, no candidates.
What is the expected behavior?
Termux should allow the active Android IME to compose text (including Chinese) even when a physical keyboard is attached, the same way browsers, editors and other terminals-on-Android behave. At minimum, a toolbar button or setting should force-show the soft IME and let composition go through.
System information
- Termux application version:0.119.0-beta.3
- OS: HarmonyOS 4.2, Android compatibility: 12 (API 31)
- Device model:TGR-W10
Problem description
When an external/physical keyboard (Bluetooth or USB) is connected to my Android tablet, Termux only accepts ASCII input. The system IME is switched to a Chinese input method (e.g. GBoard Pinyin, Trime/Rime), which works fine in other apps and even in Termux when the physical keyboard is not connected. But once the hardware keyboard is attached, Termux keeps receiving raw keystrokes and never shows the IME candidate bar, so typing Chinese is impossible.
Workarounds that partially work but are not real fixes:
Swiping the extra-key bar to reveal the text input view and pasting/candidates there.
Toggling "Show on-screen keyboard while hardware keyboard is attached" in Android settings + dragging the soft keyboard up manually.
enforce-char-based-input = true does not enable IME composition.
None of these let me compose Chinese directly through the physical keyboard like other Android apps do.
Steps to reproduce the behavior.
Connect a physical keyboard to an Android tablet/phone.
Set system IME to GBoard (or Trime) with a Chinese scheme active.
Open Termux.
Try to type Chinese characters via the physical keyboard (or via the IME switch hotkey).
Only English/ASCII letters appear; no composition, no candidates.
What is the expected behavior?
Termux should allow the active Android IME to compose text (including Chinese) even when a physical keyboard is attached, the same way browsers, editors and other terminals-on-Android behave. At minimum, a toolbar button or setting should force-show the soft IME and let composition go through.
System information