From be9178087d79026ed3564de57289bc1f1da73a38 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Wed, 15 Jan 2025 05:22:35 +0400 Subject: fix: Query duplication in global message search (#1636) --- main/src/ui/global_search.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/src/ui/global_search.vala') 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(); } -- cgit v1.2.3-70-g09d2