>From 6452aaf76fc23c6599984655a57009edf3288299 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Vilmar=20Est=C3=A1cio=20de=20Souza?=
 <vilmar informal com br>
Date: Wed, 4 Dec 2013 11:22:59 -0200
Subject: [PATCH 2/2] Avoid double reading in eclipse when a table gain focus.

When a table in eclipse receivves the focus, the elemente with focus
is read two times.
---
 src/orca/scripts/apps/Eclipse/script.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/orca/scripts/apps/Eclipse/script.py b/src/orca/scripts/apps/Eclipse/script.py
index 1d866dd..7084ae8 100644
--- a/src/orca/scripts/apps/Eclipse/script.py
+++ b/src/orca/scripts/apps/Eclipse/script.py
@@ -128,4 +128,15 @@ class Script(GAIL.Script):
                 return
         GAIL.Script.onSelectionChanged(self, event)
 
+    def onActiveDescendantChanged(self, event):
+        """Callback for object:active-descendant-changed accessibility events."""
+
+        obj = event.source
+        if obj.getRole() == pyatspi.ROLE_TABLE:
+            lastKey, mods = self.utilities.lastKeyAndModifiers()
+            if not lastKey in self.movementKeys:
+                # since we are in a table and a navigation key  not been pressed, we go to skip this event.
+                # Orca must have read the important information when the event object:state-changed:focused was issued.
+                return
+        GAIL.Script.onActiveDescendantChanged(self, event)
 
-- 
1.8.4.2