termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
1.85k stars 290 forks source link

[Bug]: Keyboard displayes in preference page #593

Closed zongou closed 4 months ago

zongou commented 4 months ago

Problem description

Keyboard displays in preference page

What steps will reproduce the bug?

  1. Open app
  2. Press Back key to show soft keyboard
  3. Tap the preference button

What is the expected behavior?

Do not show keyboard.

twaik commented 4 months ago

I'll add some code to hide keyboard when becomes not focused.

zongou commented 4 months ago

More details: It not only happens within that app. for example, after repeating those steps but without tapping the preference button, instead you go to google keyboard settings page, or android system settings page, it triggers that too.

zongou commented 4 months ago

My idea to fix this bug: Setting the flag to SHOW_IMPLICIT for general purpose, and then in the cases the soft keyboard cannot show, set it to SHOW_FORCED.

twaik commented 4 months ago

Android framework does not report about IME status. It is shown or not. And no, we can not check ime size since

  1. It is not possible before Android 10.
  2. Because of IME appearing animation on some devices.
ask9027 commented 4 months ago

share screenshot , in my case there is no keyboard while open preferences as you told

twaik commented 4 months ago

@zongou check the latest build.

zongou commented 4 months ago

share screenshot , in my case there is no keyboard while open preferences as you told

https://github.com/termux/termux-x11/assets/23202896/032a56f8-60d8-42db-a212-709d42d7018d

zongou commented 4 months ago

@zongou check the latest build.

it indeed hides soft keyboard elsewhere, but i cannot switch keyboard now

https://github.com/termux/termux-x11/assets/23202896/99030c8b-8880-4481-86d2-0d505efb9009

twaik commented 4 months ago

Try this.

zongou commented 4 months ago

Try this.

Currently this is no any issue i can find