[connections/type-ahead-only-in-collection-view] 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/type-ahead-only-in-collection-view] window: Let search handle type-ahead only in collection view
- Date: Tue, 26 Oct 2021 13:49:15 +0000 (UTC)
commit bd7049e6a8f08eb5b42e913aa1c29ac4e14176fe
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 3f9dfec..56a277b 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -148,7 +148,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]