[orca] Defer all focused claims for editable Gecko widgets to the default script
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Defer all focused claims for editable Gecko widgets to the default script
- Date: Tue, 12 Nov 2013 19:14:37 +0000 (UTC)
commit 6a1f936d77d9e812f66ef698211ba3a9066bed4d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Nov 12 14:13:25 2013 -0500
Defer all focused claims for editable Gecko widgets to the default script
src/orca/scripts/toolkits/Gecko/script.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 75c3e22..19baa77 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1312,6 +1312,11 @@ class Script(default.Script):
default.Script.onFocusedChanged(self, event)
return
+ state = obj.getState()
+ if state.contains(pyatspi.STATE_EDITABLE):
+ default.Script.onFocusedChanged(self, event)
+ return
+
try:
eventSourceRole = event.source.getRole()
except:
@@ -1355,8 +1360,7 @@ class Script(default.Script):
# caret context for the document frame. If we succeed, then
# we set the focus on the object that's holding the caret.
#
- if eventSourceRole == pyatspi.ROLE_DOCUMENT_FRAME \
- and not event.source.getState().contains(pyatspi.STATE_EDITABLE):
+ if eventSourceRole == pyatspi.ROLE_DOCUMENT_FRAME:
try:
[obj, characterOffset] = self.getCaretContext()
state = obj.getState()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]