Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soft keyboard is opened when Termux is put to foreground, even if keyboard was manually closed #2188

Closed
Susko3 opened this issue Jul 25, 2021 · 3 comments

Comments

@Susko3
Copy link

Susko3 commented Jul 25, 2021

Problem description

The soft keyboard will open every time Termux is put to foreground. This shouldn't happen if the keyboard was manually closed (eg. by tapping on keyboard button in the drawer or by pressing back to close the keyboard).

Steps to reproduce

  1. Open Termux
  2. Close the soft keyboard by pressing the keyboard button in the left drawer, or by pressing the back button
  3. Put Termux to background (by pressing the home or recents button)
  4. Open Termux again
  5. Notice that the keyboard is open, even though it was manually closed

Expected behavior

The keyboard shouldn't open if it was manually closed. If I had wanted the keyboard to open, I'd have tapped on the screen.

Additional information

  • Termux application version: 0.114
  • Android OS version: 10
  • Device model: Realme 6
@agnostic-apollo
Copy link
Member

agnostic-apollo commented Jul 25, 2021

Check this for why that can't be done reliably in show/hide mode. Use soft-keyboard-toggle-behaviour=enable/disable added in v0.113 with the KEYBOARD extra key or left drawer button if you don't want keyboard to show automatically.

@Susko3
Copy link
Author

Susko3 commented Jul 25, 2021

Would it be possible to make the termux.properties back-key have an option to toggle the keyboard the same way KEYBOARD extra key does?

Something like setting back-key=keyboard

@agnostic-apollo
Copy link
Member

But then you won't be able to exit termux with back key. It should likely technically be possible though.

Moreover, note that back-key=escape already exists https://wiki.termux.com/wiki/Terminal_Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants