[orca] Add an explicit check for KP_0 as the Orca Modifier plus Shift
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add an explicit check for KP_0 as the Orca Modifier plus Shift
- Date: Sat, 5 Apr 2014 16:28:01 +0000 (UTC)
commit 669cde3bd2bca4c9fefb9f8043f988ecf5e6e635
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Apr 5 12:21:19 2014 -0400
Add an explicit check for KP_0 as the Orca Modifier plus Shift
src/orca/input_event.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/input_event.py b/src/orca/input_event.py
index 52c7938..49db46a 100644
--- a/src/orca/input_event.py
+++ b/src/orca/input_event.py
@@ -268,7 +268,15 @@ class KeyboardEvent(InputEvent):
if orca_state.bypassNextCommand:
return False
- return self.event_string in settings.orcaModifierKeys
+ if self.event_string in settings.orcaModifierKeys:
+ return True
+
+ if self.keyval_name == "KP_0" \
+ and "KP_Insert" in settings.orcaModifierKeys \
+ and self.modifiers & settings.SHIFT_MODIFIER_MASK:
+ return True
+
+ return False
def isOrcaModified(self):
"""Return True if this key is Orca modified."""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]