orca r3599 - in trunk: . src/orca



Author: joanied
Date: Tue Feb 19 01:22:55 2008
New Revision: 3599
URL: http://svn.gnome.org/viewvc/orca?rev=3599&view=rev

Log:
* src/orca/input_event.py: 
  Fix for bug #516321 - Caps lock not correctly reporting the
  state when toggled.


Modified:
   trunk/ChangeLog
   trunk/src/orca/input_event.py

Modified: trunk/src/orca/input_event.py
==============================================================================
--- trunk/src/orca/input_event.py	(original)
+++ trunk/src/orca/input_event.py	Tue Feb 19 01:22:55 2008
@@ -76,12 +76,14 @@
             if value < 32:
                 event_string = chr(value + 0x40)
 
-        # Eliminate modifiers we're not interested in.
+        # Filter out the NUMLOCK modifier -- it always causes problems.
         #
         mask = (1 << settings.MODIFIER_ORCA |
-                1 << pyatspi.MODIFIER_ALT |
                 1 << pyatspi.MODIFIER_SHIFT |
+                1 << pyatspi.MODIFIER_SHIFTLOCK |
                 1 << pyatspi.MODIFIER_CONTROL |
+                1 << pyatspi.MODIFIER_ALT |
+                1 << pyatspi.MODIFIER_META |
                 1 << pyatspi.MODIFIER_META2 |
                 1 << pyatspi.MODIFIER_META3)
         event.modifiers = event.modifiers & mask



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]