[orca/gnome-3-36] Improve presentation of caret moved events to end of contenteditable children
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-36] Improve presentation of caret moved events to end of contenteditable children
- Date: Thu, 27 Feb 2020 14:20:46 +0000 (UTC)
commit b8e44a9eb5b856dc77699ab5b450e46aa110f991
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Feb 27 15:14:38 2020 +0100
Improve presentation of caret moved events to end of contenteditable children
When navigating in contenteditable content, moving just past a child
element can result in our getting a caret-moved event for the end of that
child, but not one for what is functionally the new caret position. We were
already handling that for contenteditable links, so just remove the link
restriction.
src/orca/scripts/web/script_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index f3f59f866..3781b7af9 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4461,7 +4461,7 @@ class Utilities(script_utilities.Utilities):
return obj, 0
if text and offset >= text.characterCount:
- if self.isLink(obj) and self.isContentEditableWithEmbeddedObjects(obj):
+ if self.isContentEditableWithEmbeddedObjects(obj):
nextObj, nextOffset = self.nextContext(obj, text.characterCount)
if nextObj:
msg = "WEB: First caret context at end of %s, %i is next context %s, %i" % \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]