[orca] Ensure we present final word in element when navigating by word
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ensure we present final word in element when navigating by word
- Date: Wed, 19 Jun 2019 17:22:52 +0000 (UTC)
commit 393d9a0e402ae13c54fd9c64b951adcd370ea79e
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Jun 19 13:22:14 2019 -0400
Ensure we present final word in element when navigating by word
src/orca/scripts/web/script.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 15e68e414..5ba1f6f10 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -841,6 +841,10 @@ class Script(default.Script):
return
obj, offset = self.utilities.getCaretContext(documentFrame=None)
+ text = self.utilities.queryNonEmptyText(obj)
+ if text and offset == text.characterCount:
+ offset -= 1
+
wordContents = self.utilities.getWordContentsAtOffset(obj, offset)
textObj, startOffset, endOffset, word = wordContents[0]
self.speakMisspelledIndicator(textObj, startOffset)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]