[orca] Make determination about grabbing focus before finding first caret context
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Make determination about grabbing focus before finding first caret context
- Date: Wed, 21 Mar 2018 17:40:12 +0000 (UTC)
commit 9cf2e53d76332c99a318ac9d4022d65384620cd8
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Mar 21 13:38:57 2018 -0400
Make determination about grabbing focus before finding first caret context
Addresses issue in opening report of bgo 794573
src/orca/scripts/web/script_utilities.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 725f401..79b5ee5 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -352,13 +352,15 @@ class Utilities(script_utilities.Utilities):
if self._script.flatReviewContext:
self._script.toggleFlatReviewMode()
+ grabFocus = self.grabFocusWhenSettingCaret(obj)
+
obj, offset = self.findFirstCaretContext(obj, offset)
self.setCaretContext(obj, offset, documentFrame)
if self._script.focusModeIsSticky():
return
orca.setLocusOfFocus(None, obj, notifyScript=False)
- if self.grabFocusWhenSettingCaret(obj):
+ if grabFocus:
self.grabFocus(obj)
text = self.queryNonEmptyText(obj)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]