GNOME Bugzilla – Bug 300076
[PATCH] Make the keybindings work even when numlock is on
Last modified: 2008-02-26 20:49:25 UTC
The keybindings don't work for me if Numlock is turned on. We fixed this in Beagle a while ago so I guess it would be nice to backport it to Tomboy as well.
Created attachment 45101 [details] [review] Make keybindings work if Numlock is on Please let me know if its ok to commit this.
Lukas, why are you calling XGrabKey 32 times?? And why are you ignoring all those arbitrary modifiers? Just call XGrabKey with and without GDK_LOCK_MASK in the modifier mask.
Okay, it looks like we should be doing the same as http://mail.gnome.org/archives/gnome-devel-list/2001-February/msg00250.html. That is, using AnyModifier in the call to XGrabKey/XUngrabKey and filtering out + ignored_mods = ~(GDK_LOCK_MASK /*capslock*/ | GDK_MOD2_MASK /*numlk*/ | + GDK_MOD5_MASK /*scrolllock*/| 0x2000 /*Xkb modifier*/); In the KeyPress handler.
Alex it would be better to ask Joe about this. He fixed it like this for us in Beagle.
Just commited a fix for this in CVS. Please retry, and if you have any problems, reopen this bug. Thanks.