diff --git a/src/manager_window.vala b/src/manager_window.vala index 00acea1bfb79ef33ebe346c3272ee6bdbd3fe521..87edab7dcc1affc7b85b4fd4a9d5b56244240dec 100644 --- a/src/manager_window.vala +++ b/src/manager_window.vala @@ -397,7 +397,10 @@ namespace Pamac { searchbar.notify["search-mode-enabled"].connect (on_search_mode_enabled); // enable "type to search" this.key_press_event.connect ((event) => { - return searchbar.handle_event (event); + if (main_stack.visible_child_name == "browse") { + return searchbar.handle_event (event); + } + return false; }); // create screenshots tmp dir @@ -1387,6 +1390,9 @@ namespace Pamac { } return found; }); + if (!searchbar.search_mode_enabled) { + searchbar.search_mode_enabled = true; + } } break; case "groups":