From 63fe6de94db663db991ea51960eef71a11babd72 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 13 Mar 2014 01:57:29 +0100 Subject: [PATCH] treeview: Don't popup a search dialog for keypresses that close it That doesn't make sense. And it causes issues, because when holding down the tab key, we show/hide a lot of windows and cause a lot of map/unmap events that stall the event pipeline. --- gtk/gtktreeview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 2776ceab2d..c882495694 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -5918,7 +5918,8 @@ gtk_tree_view_key_press (GtkWidget *widget, * the typeahead find capabilities. */ if (gtk_widget_has_focus (GTK_WIDGET (tree_view)) && tree_view->priv->enable_search - && !tree_view->priv->search_custom_entry_set) + && !tree_view->priv->search_custom_entry_set + && !gtk_tree_view_search_key_cancels_search (event->keyval)) { GdkEvent *new_event; char *old_text;