[Bug] Settings search bar auto-popup keyboard cannot be dismissed
Steps to reproduce
Subject: Bug Report: Cannot dismiss auto-popup keyboard in Settings search bar (Pre-release)
Description: In the latest pre-release build, navigating to the newly added search bar in the Settings menu automatically opens the on-screen keyboard. Once the keyboard appears, there is no way to dismiss or close it, making it impossible to navigate through the rest of the settings.
Steps to reproduce:
Open Settings.
Navigate or click on the new search bar at the top.
The keyboard automatically pops up.
Try to dismiss/close the keyboard (it remains stuck on screen).
Expected behavior
Selecting or focusing on the search bar should open the keyboard, but pressing the back button or clicking outside should dismiss it.
Actual behavior
The keyboard opens automatically when the search bar comes into focus, and there is no way to dismiss or close it, preventing further navigation.
Cloudstream version and commit hash
4.8.0-PRE (9bca3a3be)
Android version
Amazon Fire TV Stick (Fire OS 7.7.1.6 - Android 9 base)
Logcat
Other details
No response
Acknowledgements
- [x] I am sure my issue is related to the app and NOT some extension.
- [x] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
- [x] I have written a short but informative title.
- [x] I have updated the app to pre-release version Latest.
- [x] I will fill out all of the requested information in this form.
Currently working on this issue.
Regarding Cloudstream Pre-release (4.8.0-PRE -9feeaed):
In the Settings section, the auto-pop-up keyboard can now be dismissed using the Back button or the hide-keyboard button on the OSK. However, the underlying issue still persists in a different way.
Having the keyboard automatically pop up whenever the focus moves over the Search bar causes usability issues. It would be much better if the keyboard only opened after manually confirming with the OK (Select) button.
Additionally, when we type a search query, we cannot confirm/submit the search using the "Next / Done" button on the virtual keyboard.
Thank you for your support and help regarding this matter!
SettingsFragmentScreen.txtI solved my keyboard issue by making some changes to the SettingsFragmentScreen.kt file as well. It would be great if someone who knows the codebase well could review it and include it in the next update. I tested it and it works great!
First of all, thank you for the hard work! With the latest updates, most of the issues have been resolved.
However, there is still one specific issue remaining on Fire TV / Firestick devices:
Remaining Issue: When typing into the search bar, the characters are successfully inserted into the app's TextField, and pressing the Back button correctly dismisses the keyboard. However, the typed characters do not appear inside the soft keyboard's on-screen text preview/candidate bar.
Suggested Fix: This sync issue between the native Fire OS IME preview bar and Compose's TextFieldState is caused by the manual isWritable state logic and .onPreviewKeyEvent interceptor in SettingsSearch.
Removing isWritable and the .onPreviewKeyEvent modifier allows the native Fire OS keyboard to properly sync its live input context with TextFieldState.