[orca] Web: Don't generate line contents when tabbing into editable with descendants
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Web: Don't generate line contents when tabbing into editable with descendants
- Date: Fri, 26 Feb 2021 15:03:26 +0000 (UTC)
commit 09d721e3d9af930760d4de0b87de96e5e38be249
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Feb 26 16:00:00 2021 +0100
Web: Don't generate line contents when tabbing into editable with descendants
Certain chat web apps have an editable text object with descendant
elements. If one gives it focus with tab, we should just present the
entry rather than the full bar.
src/orca/scripts/web/script.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index e8fa9e58c..63ed12201 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1299,6 +1299,7 @@ class Script(default.Script):
contents = self.utilities.getLineContentsAtOffset(newFocus, caretOffset)
utterances = self.speechGenerator.generateContents(contents, priorObj=oldFocus)
elif self.utilities.isContentEditableWithEmbeddedObjects(newFocus) \
+ and not self.utilities.lastInputEventWasTab() \
and not (newFocus.getRole() == pyatspi.ROLE_TABLE_CELL and newFocus.name):
msg = "WEB: New focus %s content editable. Generating line contents." % newFocus
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]