[orca] Fix for bug 672195 - Key bindings are disabled if num lock on even in laptop mode



commit 20e93a7797c72feb5527e4d7ac008ec8a5bcdc1d
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Jul 6 15:07:41 2013 -0400

    Fix for bug 672195 - Key bindings are disabled if num lock on even in laptop mode

 src/orca/keybindings.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/keybindings.py b/src/orca/keybindings.py
index 5ac6bab..019da49 100644
--- a/src/orca/keybindings.py
+++ b/src/orca/keybindings.py
@@ -367,7 +367,8 @@ class KeyBindings:
                 if keyBinding.keysymstring:
                     candidates.append(keyBinding)
 
-        if keyboardEvent.modifiers & (1 << pyatspi.MODIFIER_NUMLOCK):
+        if keyboardEvent.modifiers & (1 << pyatspi.MODIFIER_NUMLOCK) \
+            and keyboardEvent.keyval_name.startswith("KP"):
             return None
 
         # If we're still here, we don't have an exact match. Prefer



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