Search button and search entry state can get out of sync
Steps to reproduce
Case A
- Press the search button (while the search entry is hidden)
- Enter a search term
- Press the clear button at the end of the search entry
Case B
- Press Ctrl+F (while the search entry is hidden)
- Press Escape
Reproducible in:
- Flatpak unstable: yes
Current behavior
Case A
The search button stays pressed, but the search entry is hidden. You now need to press the search button twice to display the search entry again.
Case B
The search button does not appear pressed. Pressing Escape does nothing. You now need to press the search button twice to hide the search entry again.
Expected behavior
Case A
The search button no longer appears pressed.
Case B
The search button appears pressed. Escape hides the search entry.