[orca] Improve presentation when Page_Up/Page_Down is used in editable combo boxes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Improve presentation when Page_Up/Page_Down is used in editable combo boxes
- Date: Sat, 11 Mar 2017 18:50:08 +0000 (UTC)
commit 29671a94c54370a326f9983fa1bec2ce1f27bd61
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Mar 11 13:49:07 2017 -0500
Improve presentation when Page_Up/Page_Down is used in editable combo boxes
src/orca/script_utilities.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 1366beb..ee14320 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2958,7 +2958,7 @@ class Utilities:
return True
if lastKey == "Return" and event.any_data != "\n":
return True
- if lastKey in ["Up", "Down"]:
+ if lastKey in ["Up", "Down", "Page_Up", "Page_Down"]:
return self.isEditableDescendantOfComboBox(event.source)
return False
@@ -4250,6 +4250,9 @@ class Utilities:
if not keyString in ["Page_Up", "Page_Down"]:
return False
+ if self.isEditableDescendantOfComboBox(orca_state.locusOfFocus):
+ return False
+
return not (mods & keybindings.CTRL_MODIFIER_MASK)
def lastInputEventWasFileBoundaryNav(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]