On Mon, Aug 1, 2011 at 5:55 PM, Aurélien Aptel <aurelien.ap...@gmail.com> wrote: > When numlock is on, each keypress has a state of 0x10. I suppose > nobody actually use keybindings involving numlock so kmap() could > clear the numlock mask from state before looking for a match in key[].
And handle the special case when mask = XK_NO_MOD. Also anonymous forgot to attach his second patch.