From 58b5584afd563918f917e98586e570cc8ec8db09 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Mon, 21 Jun 2010 18:27:44 +0200 Subject: [PATCH] Clean event->state --- zathura.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura.c b/zathura.c index cc9ded5..2f97071 100644 --- a/zathura.c +++ b/zathura.c @@ -3890,7 +3890,7 @@ cb_view_kb_pressed(GtkWidget *widget, GdkEventKey *event, gpointer data) if( event->keyval == sc->element.key && (CLEAN(event->state) == sc->element.mask || (sc->element.key >= 0x21 - && sc->element.key <= 0x7E && event->state == GDK_SHIFT_MASK)) + && sc->element.key <= 0x7E && CLEAN(event->state) == GDK_SHIFT_MASK)) && (Zathura.Global.mode & sc->element.mode || sc->element.mode == ALL) && sc->element.function )