[orca] Ensure we present a newly-focused entry after dialog is dismissed
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ensure we present a newly-focused entry after dialog is dismissed
- Date: Tue, 11 Jun 2019 16:44:56 +0000 (UTC)
commit 2579e7274a8a0c15553b7fe20fefbcf61d049ccf
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jun 11 12:44:05 2019 -0400
Ensure we present a newly-focused entry after dialog is dismissed
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 6bcd7773f..15e68e414 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1532,7 +1532,8 @@ class Script(default.Script):
if not _settingsManager.getSetting('caretNavigationEnabled') \
or self._inFocusMode or isEditable:
self.utilities.setCaretContext(event.source, event.detail1)
- orca.setLocusOfFocus(event, event.source, False)
+ notify = event.source.getState().contains(pyatspi.STATE_FOCUSED)
+ orca.setLocusOfFocus(event, event.source, notify)
msg = "WEB: Setting locusOfFocus, context to: %s, %i" % \
(event.source, event.detail1)
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]