Fixing keybindings when numlock is enabled.

This commit is contained in:
Enno Boland (Gottox) 2009-06-08 20:50:45 +02:00
parent b95f15e987
commit d408ffb595

2
surf.c
View File

@ -204,7 +204,7 @@ keypress(GtkWidget* w, GdkEventKey *ev, gpointer d) {
return FALSE; 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) { switch(ev->keyval) {
case GDK_r: case GDK_r:
case GDK_R: case GDK_R: