[orca] Search for caret context when focus goes from frame to web document
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Search for caret context when focus goes from frame to web document
- Date: Thu, 5 Jul 2018 16:17:50 +0000 (UTC)
commit aee948b89781427b872f656f7142f1fedca56979
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Jul 5 12:16:51 2018 -0400
Search for caret context when focus goes from frame to web document
src/orca/scripts/web/script.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 5002d097b..85d4885aa 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1133,7 +1133,8 @@ class Script(default.Script):
return False
caretOffset = 0
- if not oldFocus or self.utilities.inFindToolbar(oldFocus):
+ if not oldFocus or self.utilities.inFindToolbar(oldFocus) \
+ or (self.utilities.isDocument(newFocus) and oldFocus == orca_state.activeWindow):
contextObj, contextOffset = self.utilities.getCaretContext()
if contextObj and not self.utilities.isZombie(contextObj):
newFocus, caretOffset = contextObj, contextOffset
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]