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
1 changed files with 1 additions and 1 deletions

2
surf.c
View File

@ -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: