This is an automated email from the git hooks/post-receive script. a l e x p u s h e d a c o m m i t t o b r a n c h m a s t e r in repository xfce/xfdesktop.
commit 6f85effe2336e4514d41f49ec53df168bca0132d Author: Boris Astardzhiev <boris.astardzh...@gmail.com> Date: Mon Feb 17 13:48:35 2020 +0200 Ignore modifier key events in type-ahead find (Bug #11149) Co-authored-by: Alexander Schwinn <alexxc...@xfce.org> --- src/xfdesktop-icon-view.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c index cf1fab1..774b3e0 100644 --- a/src/xfdesktop-icon-view.c +++ b/src/xfdesktop-icon-view.c @@ -1137,12 +1137,15 @@ xfdesktop_icon_view_key_press(GtkWidget *widget, * 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. */ - 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); + GdkModifierType ignore_modifiers = gtk_accelerator_get_default_mod_mask(); + if((evt->state & ignore_modifiers) == 0) { + /* Binding not found and key press is not part of a 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); + } } return ret; -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits