[orca/570658] Fix for the xul_role_list_item bug.



commit 97298853d498f1ff7d2534a0649bc6fbcfeccd66
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sat Jul 4 22:05:38 2009 -0400

    Fix for the xul_role_list_item bug.
    
    The problem turned out to be that we were getting the focused item
    as part of the context for what happened to be the focused (list)
    item. After trying to find other ways to identify this condition
    (e.g. looking at states and the value of 'recursing'), I wound up
    comparing the focused item with the locusOfFocus as that seems to
    be the most reliable.

 .../scripts/toolkits/Gecko/braille_generator.py    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/braille_generator.py b/src/orca/scripts/toolkits/Gecko/braille_generator.py
index e7322be..57aadc1 100644
--- a/src/orca/scripts/toolkits/Gecko/braille_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/braille_generator.py
@@ -33,6 +33,7 @@ __license__   = "LGPL"
 import pyatspi
 
 import orca.braille_generator as braille_generator
+import orca.orca_state as orca_state
 
 from orca.orca_i18n import _ # for gettext support
 
@@ -225,7 +226,7 @@ class BrailleGenerator(braille_generator.BrailleGenerator):
                     item = obj[i]
                     break
             item = item or obj[0]
-            if item:
+            if item and (item != orca_state.locusOfFocus):
                 name = self._generateName(item, **args)
                 if name and name != self._generateLabel(obj, **args):
                     result.extend(name)



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