[orca] Fix for bug 672195 - Key bindings are disabled if num lock on even in laptop mode
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug 672195 - Key bindings are disabled if num lock on even in laptop mode
- Date: Sat, 6 Jul 2013 19:08:03 +0000 (UTC)
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]