[orca/570658] Use default formatting when dealing with a non-focusable list.
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca/570658] Use default formatting when dealing with a non-focusable list.
- Date: Thu, 2 Jul 2009 14:31:37 +0000 (UTC)
commit 6d56f678886d69cb29324e28bfe122afd50f9a1e
Author: Willie Walker <william walker sun com>
Date: Thu Jul 2 10:30:23 2009 -0400
Use default formatting when dealing with a non-focusable list.
.../scripts/toolkits/Gecko/braille_generator.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/braille_generator.py b/src/orca/scripts/toolkits/Gecko/braille_generator.py
index 587f342..7f51026 100644
--- a/src/orca/scripts/toolkits/Gecko/braille_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/braille_generator.py
@@ -232,7 +232,10 @@ class BrailleGenerator(braille_generator.BrailleGenerator):
# ARIA widgets get treated like regular default widgets.
#
args['includeContext'] = not self._script.inDocumentContent()
- args['useDefaultFormatting'] = self._script.isAriaWidget(obj)
+ args['useDefaultFormatting'] = \
+ self._script.isAriaWidget(obj) \
+ or ((obj.getRole() == pyatspi.ROLE_LIST) \
+ and (not obj.getState().contains(pyatspi.STATE_FOCUSABLE)))
result.extend(braille_generator.BrailleGenerator.\
generateBraille(self, obj, **args))
del args['includeContext']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]