[orca] Ensure we generate text content for focus-mode widgets
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ensure we generate text content for focus-mode widgets
- Date: Tue, 7 Apr 2020 20:52:19 +0000 (UTC)
commit 14b34f174ea22d6e2bbd9da918e4b9c8e46d2f0b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Apr 7 16:49:16 2020 -0400
Ensure we generate text content for focus-mode widgets
We were doing one thing for focus mode widgets when in focus mode,
and another thing when in browse mode. Generating text content for
these widgets should not depend on the mode.
src/orca/scripts/web/script.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index fd851549f..0f6971bb7 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1072,7 +1072,7 @@ class Script(default.Script):
"""To-be-removed. Returns the string, caretOffset, startOffset."""
if self._inFocusMode or not self.utilities.inDocumentContent(obj) \
- or obj.getState().contains(pyatspi.STATE_EDITABLE):
+ or self.utilities.isFocusModeWidget(obj):
return super().getTextLineAtCaret(obj, offset, startOffset, endOffset)
text = self.utilities.queryNonEmptyText(obj)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]