aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/src/ui/global_search.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/ui/global_search.vala b/main/src/ui/global_search.vala
index 51e04af2..5042b09c 100644
--- a/main/src/ui/global_search.vala
+++ b/main/src/ui/global_search.vala
@@ -98,6 +98,8 @@ public class GlobalSearch {
}
private void on_key_released(uint keyval, uint keycode, Gdk.ModifierType state) {
+ if (!auto_complete_overlay.visible) return;
+
if (keyval == Gdk.Key.Return) {
auto_complete_list.get_selected_row().activate();
}