From d408ffb5950d571f938cb834e445e8dc8d3fde3c Mon Sep 17 00:00:00 2001 From: "Enno Boland (Gottox)" Date: Mon, 8 Jun 2009 20:50:45 +0200 Subject: [PATCH] Fixing keybindings when numlock is enabled. --- surf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surf.c b/surf.c index f278ac7..97670dc 100644 --- a/surf.c +++ b/surf.c @@ -204,7 +204,7 @@ keypress(GtkWidget* w, GdkEventKey *ev, gpointer d) { return FALSE; } } - if(ev->state == GDK_CONTROL_MASK || ev->state == (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) { + if((ev->state & ~(GDK_SHIFT_MASK|GDK_LOCK_MASK)) == GDK_CONTROL_MASK) { switch(ev->keyval) { case GDK_r: case GDK_R: