Skip to content

fix: Escape key only closes searchbar, does not reopen it#1271

Open
impsislegobatman wants to merge 1 commit intogetting-things-gnome:masterfrom
impsislegobatman:fix/escape-only-closes-search
Open

fix: Escape key only closes searchbar, does not reopen it#1271
impsislegobatman wants to merge 1 commit intogetting-things-gnome:masterfrom
impsislegobatman:fix/escape-only-closes-search

Conversation

@impsislegobatman
Copy link
Copy Markdown

Summary

Fixes #1243

The Escape key was mapped to toggle_search, which would reopen the searchbar after closing it with Ctrl+F.

Changes

  • Added a close_search() method that only dismisses the searchbar when it is currently active (no-op when already closed)
  • Mapped the Escape key action to close_search instead of toggle_search
  • Refactored toggle_search to use close_search internally

The Escape key was mapped to toggle_search which would reopen the
searchbar after closing it. Added a close_search method that only
dismisses the searchbar when it is active.

Fixes getting-things-gnome#1243
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Escape key reopens the closed searchbar, and can be called from anywhere in the main window

1 participant