mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
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.
This commit is contained in:
parent
c82f2169e5
commit
63fe6de94d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user