-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
Edit: I found the Soft keyboard only if no hardware setting and disabled it which prevents my issues, but I think they still apply for users that keep the setting enabled.
Problem description
If Termux is in the foreground with a hardware keyboard connected (either USB or Bluetooth), then pressing the home or recent apps buttons will take the user to their home screen or recent apps list. Unfortunately when this happens, the software keyboard will still be open and not do anything because it doesn't have a text field. It can be closed with the Back button, but this causes a worse issue: The soft keyboard disappears. If Termux is brought to the foreground again, the keyboard will not appear unless the user does the following twice:
- Open the slider drawer
- Tap the KEYBOARD button
This happens regardless of the Android setting that shows the virtual keyboard when a hardware keyboard is connected.
I tried different hardware and software keyboards, as well as tested other apps behavior when they have the focus of the soft keyboard when home or recent apps buttons are pressed.
Steps to reproduce the behavior.
The first issue (which causes the second):
- Connect a hardware keyboard, either bluetooth or usb
- Bring Termux to the foreground
- Press Home or Recent apps button
- Soft keyboard still shows unlike other apps
The second issue:
- Follow steps of the first issue
- Press back to close the unresponsive soft keyboard
- Bring Termux to the foreground again
- Soft keyboard will not be there. It won't show unless Termux is closed entirely and reopened or the drawer is opened and KEYBOARD is pressed twice
What is the expected behavior?
For the first issue:
Home and Recent apps button should hide the soft keyboard
For the second:
Termux already opens the soft keyboard by default, assuming the first issue doesn't occur.
System information
- Termux application version: 0.118.0
- Android OS version: 11
- Device model: Google Pixel 2
termux-info:
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=26960
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://grimler.se/termux/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://grimler.se/termux/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.37.0
Android version:
11
Kernel build information:
Linux localhost 4.4.223-g52750b8f2138-ab6846512 #1 SMP PREEMPT Fri Sep 18 09:49:34 UTC 2020 aarch64 Android
Device manufacturer:
Google
Device model:
Pixel 2
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so