pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b95f15e
)
Fixing keybindings when numlock is enabled.
author
Enno Boland (Gottox)
<gottox@s01.de>
Mon, 8 Jun 2009 18:50:45 +0000
(20:50 +0200)
committer
Enno Boland (Gottox)
<gottox@s01.de>
Mon, 8 Jun 2009 18:50:45 +0000
(20:50 +0200)
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
f278ac7
..
97670dc
100644
(file)
--- 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: