[orca/gnome-3-20] Fix offset used when evaluating text selection in content with embedded objects
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-20] Fix offset used when evaluating text selection in content with embedded objects
- Date: Tue, 19 Apr 2016 18:38:58 +0000 (UTC)
commit 6bf3519b311b7dbfe2dc730e0709210d0d7f5b35
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Apr 19 14:36:02 2016 -0400
Fix offset used when evaluating text selection in content with embedded objects
src/orca/scripts/web/script.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index bf1cc14..6433909 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1833,7 +1833,8 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
return False
- char = text.getText(event.detail1, event.detail1+1)
+ offset = text.caretOffset
+ char = text.getText(offset, offset+1)
if char == self.EMBEDDED_OBJECT_CHARACTER \
and not self.utilities.lastInputEventWasCaretNavWithSelection() \
and not self.utilities.lastInputEventWasCommand():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]