[orca/gnome-3-8] 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/gnome-3-8] Fix for bug 672195 - Key bindings are disabled if num lock on even in laptop mode
- Date: Sat, 6 Jul 2013 19:08:58 +0000 (UTC)
commit def0cb879e7254b7f186ecf78af42b12baf23534
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 b15b0c4..ca62ed9 100644
--- a/src/orca/keybindings.py
+++ b/src/orca/keybindings.py
@@ -360,7 +360,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]