After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 473934 - NumLock wreaks havoc on keyboard event listening
NumLock wreaks havoc on keyboard event listening
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: 2.20.0
Assigned To: Orca Maintainers
Orca Maintainers
Depends on: 474796
Blocks:
 
 
Reported: 2007-09-05 14:41 UTC by Willie Walker
Modified: 2007-09-08 10:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add bit 14 into the list of modifiers we care about (1.60 KB, patch)
2007-09-05 14:44 UTC, Willie Walker
needs-work Details | Review

Description Willie Walker 2007-09-05 14:41:10 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.
Comment 1 Willie Walker 2007-09-05 14:44:12 UTC
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.
Comment 2 Willie Walker 2007-09-08 10:05:41 UTC
Li fixed this in bug 474796.  Thanks Li!