[orca] Structural navigation should not kick in when in editable WebKitGtk objects



commit dfd0fd78de4f75e76dc65572c29d57ab11099cc5
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Jul 14 18:31:02 2012 -0400

    Structural navigation should not kick in when in editable WebKitGtk objects

 src/orca/scripts/toolkits/WebKitGtk/script.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script.py b/src/orca/scripts/toolkits/WebKitGtk/script.py
index 4142fa7..4878091 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script.py
@@ -448,9 +448,12 @@ class Script(default.Script):
         if not self.utilities.isWebKitGtk(orca_state.locusOfFocus):
             return False
 
+        states = orca_state.locusOfFocus.getState()
+        if states.contains(pyatspi.STATE_EDITABLE):
+            return False
+
         role = orca_state.locusOfFocus.getRole()
         if role in doNotHandleRoles:
-            states = orca_state.locusOfFocus.getState()
             if role == pyatspi.ROLE_LIST_ITEM:
                 return not states.contains(pyatspi.STATE_SELECTABLE)
 



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