[orca] Fix for bug 599361 - Significant delay building up the contents of certain lines in Firefox



commit 88dcc414946810b3987e6b4003e28aae4ef42744
Author: Victor Ramirez <vramirez emergya com>
Date:   Mon Aug 29 19:18:32 2011 -0400

    Fix for bug 599361 - Significant delay building up the contents of certain lines in Firefox

 src/orca/scripts/toolkits/Gecko/script.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 454656c..84563fe 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -2019,7 +2019,8 @@ class Script(default.Script):
                 candidate = candidate.parent
 
             if self.utilities.isSameObject(obj, candidate) \
-               and start <= offset < end:
+               and (start <= offset < end or candidate.getRole() == \
+               pyatspi.ROLE_ENTRY):
                 index = contents.index(content)
                 break
 



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