[orca] 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] Fix offset used when evaluating text selection in content with embedded objects
- Date: Tue, 19 Apr 2016 18:38:11 +0000 (UTC)
commit 0187d0a9e5b15d9104fe143ca6bfab51d35ab527
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 50591c1..5b064fa 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1835,7 +1835,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]