Use the KeyCode to directly find the modifier mask. (bug #5173)
authorDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 15:50:15 +0000 (11:50 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:58:21 +0000 (18:58 -0400)
commit0ef348aaf5b2acce185de075a844c6d942eaa7e0
treeb4ca7c9afb70168b0517f6709e850a3fcfc45a8a
parentf67230cc6c8478af33f8c839d4fddabee470ec03
Use the KeyCode to directly find the modifier mask. (bug #5173)

We were finding the KeySym first, and then converting back to a modifier mask.
But KeySym on a key's release can differ from on its press, and we don't need
them to determine the modmask from the keycode.

[setxkbmap -option "grp:shifts_toggle"] turns Shift_L into XK_ISO_Prev_Group on
key release, and Shift_R into XK_ISO_Next_Group.
obt/keyboard.c
obt/keyboard.h