Fixing keybindings when numlock is enabled.
This commit is contained in:
parent
b95f15e987
commit
d408ffb595
1 changed files with 1 additions and 1 deletions
2
surf.c
2
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:
|
||||
|
|
Loading…
Reference in a new issue