[orca] Add a check to the Gecko script's onCaretMoved() to be sure the caret moved
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add a check to the Gecko script's onCaretMoved() to be sure the caret moved
- Date: Fri, 22 Nov 2013 20:20:19 +0000 (UTC)
commit e1c9b48498f1b854c813152d2dff61004d6d55a5
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Nov 22 15:11:59 2013 -0500
Add a check to the Gecko script's onCaretMoved() to be sure the caret moved
src/orca/scripts/toolkits/Gecko/script.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index dc12721..87b7185 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -924,6 +924,10 @@ class Script(default.Script):
return
obj = event.source
+ firstObj, firstOffset = self.findFirstCaretContext(obj, event.detail1)
+ if firstOffset == contextOffset and firstObj == contextObj:
+ return
+
if self.isAriaWidget(obj) or not self.inDocumentContent(obj):
default.Script.onCaretMoved(self, event)
return
@@ -1309,7 +1313,7 @@ class Script(default.Script):
default.Script.locusOfFocusChanged(self, event, oldFocus, newFocus)
return
- caretOffset = 0
+ caretOffset = -1
if self.utilities.inFindToolbar(oldFocus):
newFocus, caretOffset = self.getCaretContext()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]