diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-31 07:42:58 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-31 07:42:58 +0200 |
commit | 8269e07885b433b578c5ede8fba4af62c830268e (patch) | |
tree | 7951bf2ac3642568b52bbf4f6e7cdc419da674f3 /src/ui/window.c | |
parent | 114e52a60c789c5d1d885a994e8e1bd002b7cc93 (diff) |
Window: Dismiss sidebar with Escape
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 3ec4ff4f..21338fa8 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -339,6 +339,9 @@ static iBool handleSearchBarCommands_(iWidget *searchBar, const char *cmd) { | |||
339 | } | 339 | } |
340 | refresh_Widget(searchBar->parent); | 340 | refresh_Widget(searchBar->parent); |
341 | } | 341 | } |
342 | else if (isVisible_Widget(findWidget_App("sidebar"))) { | ||
343 | postCommand_App("sidebar.toggle"); | ||
344 | } | ||
342 | return iTrue; | 345 | return iTrue; |
343 | } | 346 | } |
344 | return iFalse; | 347 | return iFalse; |