GNOME Bugzilla – Bug 473934
NumLock wreaks havoc on keyboard event listening
Last modified: 2007-09-08 10:05:41 UTC
When the NumLock key is locked, Orca doesn't receive any keyboard events. This affects Orca's ability to interrupt speech and handle any other Orca keystrokes. From private e-mail with Li Yuan: "Just looked at the code. You can refer to http://svn.gnome.org/viewcvs/at-spi/trunk/registryd/deviceeventcontroller.c?view=diff&r1=417&r2=418 and http://bugzilla.gnome.org/show_bug.cgi?id=107261 . SPI_KEYMASK_NUMLOCK is defined as (1<<14). Bill added this because the NumLock mask can be different on different keyboards." While it is exposed to assistive technologies by being set in modifier masks, I don't see SPI_KEYMASK_NUMLOCK exposed to us as a value we can use. So, we might need to hack and force registration for events containing a set bit 14.
Created attachment 94994 [details] [review] Patch to add bit 14 into the list of modifiers we care about This patch adds knowledge of bit 14 into the registration of key events, but it doesn't seem to work. I suspect there might be bugs lurking in AT-SPI. BTW, see also http://mail.gnome.org/archives/orca-list/2007-August/msg00290.html for more information on this bug.
Li fixed this in bug 474796. Thanks Li!