[orca/gnome-3-36] Filter out extraneous presentation of "space" when navigating by word
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-36] Filter out extraneous presentation of "space" when navigating by word
- Date: Thu, 27 Feb 2020 12:57:22 +0000 (UTC)
commit 6df8f96fbce9e0595daf3ab5909ff52ca3c7500a
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Feb 27 13:52:15 2020 +0100
Filter out extraneous presentation of "space" when navigating by word
When navigating by word in contenteditable content with embedded objects,
the space at the end of the word is technically in a separate object. As
a result, we were saying the object followed by "space" when navigating.
src/orca/scripts/web/script_utilities.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index cb59ffae6..8be9d8d64 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2505,6 +2505,7 @@ class Utilities(script_utilities.Utilities):
displayedText = string or obj.name
rv = True
if ((self.isTextBlockElement(obj) or self.isLink(obj)) and not displayedText) \
+ or (self.isContentEditableWithEmbeddedObjects(obj) and not string.strip()) \
or self.isEmptyAnchor(obj) \
or (self.hasNoSize(obj) and not displayedText) \
or self.isHidden(obj) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]