-
Notifications
You must be signed in to change notification settings - Fork 3
[BUG] Pressing back while keyboard is open on focusable objects does not remove focus in ClockPage #10
Description
Describe the bug
When a text input is focused on the clock page, if I press the back button on my device, the field remains focused
Expected behavior
When a text input is focused on the clock page, if I press the back button on my device, the field is no longer focused
Observed behavior
The field is focused. Although I can't type anything in once the keyboard is no longer present, this contributes to UI jank.
To Reproduce
Steps to reproduce the behavior:
- Open TimeClock
- Press the task text field
- Press the back button on the device
- Observe that focus remains in the text field
Screenshots
If applicable, add screenshots to help explain your problem.
Device information (please complete the following information):
- Device: Samsung Galaxy s10e
- OS: Android Version 12
Additional notes
Maybe some clues here? https://stackoverflow.com/questions/71361664/jetpack-compose-intercept-back-button-from-soft-keyboard
Also look into onBackPressedDispatch owner.