[orca] Ignore a(nother) spurious caret-moved event from Gecko



commit f3e0ff1e5f7be13c16c0156b016d0a7acf4487f7
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Nov 23 19:57:22 2013 -0500

    Ignore a(nother) spurious caret-moved event from Gecko

 src/orca/scripts/toolkits/Gecko/script.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 87b7185..2952c9d 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -928,6 +928,9 @@ class Script(default.Script):
         if firstOffset == contextOffset and firstObj == contextObj:
             return
 
+        if contextObj and contextObj.parent == firstObj:
+            return
+
         if self.isAriaWidget(obj) or not self.inDocumentContent(obj):
             default.Script.onCaretMoved(self, event)
             return


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]