[orca] Prevent arrowing into a listbox when in browse mode



commit edb5ca49701891759d259449233721ea2b4525af
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Aug 18 15:56:09 2014 -0400

    Prevent arrowing into a listbox when in browse mode

 src/orca/scripts/toolkits/Gecko/script.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 3111e97..28c370c 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1174,6 +1174,10 @@ class Script(default.Script):
             orca.setLocusOfFocus(event, event.source)
             return
 
+        if obj.parent.getRole() == pyatspi.ROLE_LIST_BOX \
+           and not self._useFocusMode(obj):
+            return
+
         # As the caret moves into a non-focusable element, Gecko emits the
         # signal on the first focusable element in the ancestry.
         rolesToIgnore = pyatspi.ROLE_DOCUMENT_FRAME, pyatspi.ROLE_PANEL


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