[orca] Don't speak state of CapsLock when it is serving as the Orca modifier



commit 25061a104410a044c95677bff491d6f2d7b427e6
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Jan 4 19:02:31 2012 -0500

    Don't speak state of CapsLock when it is serving as the Orca modifier

 src/orca/input_event.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/input_event.py b/src/orca/input_event.py
index 60ff8f7..3c2011d 100644
--- a/src/orca/input_event.py
+++ b/src/orca/input_event.py
@@ -330,6 +330,9 @@ class KeyboardEvent(InputEvent):
         event unlocked a locking key, and None if we do not know or this
         is not a locking key."""
 
+        if not self.isLockingKey():
+            return None
+
         if self.event_string == "Caps_Lock":
             mod = pyatspi.MODIFIER_SHIFTLOCK
         elif self.event_string == "Num_Lock":



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