diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-11-20 20:53:27 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-11-20 20:53:27 +0100 |
commit | 266ee5efb781e0e086316163720127767291d4b4 (patch) | |
tree | 700e95da10125a6bcfe96c689703747c91e02624 /source/keyb.c | |
parent | 1bd231bc3d259bfd605c3ace9fc73a8c4c7e3e7f (diff) |
Hopefully fix for #268
Diffstat (limited to 'source/keyb.c')
-rw-r--r-- | source/keyb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/keyb.c b/source/keyb.c index 4b5ae350..975e16bd 100644 --- a/source/keyb.c +++ b/source/keyb.c @@ -30,6 +30,9 @@ ActionBindingEntry abe[NUM_ABE]; // Use this so we can ignore numlock mask. // TODO: maybe use something smarter here.. extern unsigned int NumlockMask; +extern unsigned int AltMask; +extern unsigned int SuperRMask; +extern unsigned int SuperLMask; /** * LIST OF DEFAULT SETTINGS @@ -142,7 +145,7 @@ int abe_test_action ( KeyBindingAction action, unsigned int mask, KeySym key ) if ( kb->keysym == key ) { // Bits 13 and 14 of the modifiers together are the group number, and // should be ignored when looking up key bindings - if ( ( mask & ~( LockMask | NumlockMask | ( 1 << 13 ) | ( 1 << 14 ) ) ) == kb->modmask ) { + if ( ( mask & ( AltMask | ControlMask | SuperRMask | SuperLMask ) ) == kb->modmask ) { return TRUE; } } |