From 7d57e9124402f1f8c9d48962c56493c9dd7ac68d Mon Sep 17 00:00:00 2001 From: Boris Astardzhiev Date: Mon, 17 Feb 2020 10:03:44 +0200 Subject: [PATCH] Ignore modifier key events in type-ahead find icons feature as noted on bugzilla (Bug #11149) --- src/xfdesktop-icon-view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c index cf1fab1f..44c3cd7c 100644 --- a/src/xfdesktop-icon-view.c +++ b/src/xfdesktop-icon-view.c @@ -1136,10 +1136,10 @@ xfdesktop_icon_view_key_press(GtkWidget *widget, /* since we're NO_WINDOW, events don't get delivered to us normally, * so we have to activate the bindings manually */ ret = gtk_bindings_activate_event(G_OBJECT(icon_view), evt); - if(ret == FALSE) { - /* Binding not found, now inspect the pressed character. - * Let's try to find an icon starting with this character and make - * the icon selected. */ + if(ret == FALSE && (evt->state & GDK_MODIFIER_MASK) == 0) { + /* Binding not found and key press is not part of any combo. + * Now inspect the pressed character. Let's try to find an + * icon starting with this character and make the icon selected. */ guint32 unicode = gdk_keyval_to_unicode(evt->keyval); if(unicode && g_unichar_isgraph(unicode) == TRUE) xfdesktop_icon_view_type_ahead_find_icon(icon_view, evt); -- 2.20.1