Skip to content

If keyboard toggle is enable/disable, you have to press it twice after keyboard is auto closed #2111

Closed
@trygveaa

Description

Problem description
With the option introduced in e4e638b for #1098, I'm having some issues with the keyboard auto closing. When this happens, and I press the keyboard toggle, nothing happens until I press it a second time (because the keyboard is disabled on the first press even though it's closed). Personally, I don't think the keyboard should auto close when having this option set, it should always be shown when the keyboard enabled.

Steps to reproduce

  1. Set soft-keyboard-toggle-behaviour = enable/disable.
  2. Open Termux and have the keyboard open.
  3. Lock the screen.
  4. Unlock the screen.

Alternatively:

  1. Set soft-keyboard-toggle-behaviour = enable/disable.
  2. Open Termux and have the keyboard open.
  3. Open a URL.
  4. Press back in the browser to return to Termux.

Expected behavior
The keyboard should still be open in Termux after these steps. Currently, it's closed which causes the issue mentioned initially about having to press the keyboard toggle twice.

Additional information
When the back-key option is default/back, the keyboard is closed on back. This causes the same issue that you have to press the keyboard toggle twice. I think when the keyboard is set to enable/disable, the back key should either take you straight out of the app without closing the keyboard (like when you press back after the keyboard is closed), or alternatively disable the keyboard.

  • Termux application version: 0.113
  • Android OS version: 11
  • Device model: OnePlus 9 Pro

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions