[connections/gnome-41-1-backports: 1/2] window: Let search handle type-ahead only in collection view
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/gnome-41-1-backports: 1/2] window: Let search handle type-ahead only in collection view
- Date: Wed, 27 Oct 2021 09:23:19 +0000 (UTC)
commit 9d7ea1b70c022831f93bbf9ac85ea61d94966202
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Oct 26 15:47:56 2021 +0200
window: Let search handle type-ahead only in collection view
Otherwise the SearchEntry will steal the key-press events from
the display widget.
Fixes #78
src/window.vala | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/window.vala b/src/window.vala
index e81fef6..8232f82 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -150,7 +150,10 @@ namespace Connections {
return true;
}
- return collection_view.search_bar.handle_event ((Gdk.Event) event);
+ if (stack.visible_child == collection_view)
+ return collection_view.search_bar.handle_event ((Gdk.Event) event);
+
+ return false;
}
[GtkCallback]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]