[orca/570658] Get braille context when not in document content
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca/570658] Get braille context when not in document content
- Date: Wed, 1 Jul 2009 12:59:47 +0000 (UTC)
commit a7fbabffe584491cc0b85a71a9b9d66425743670
Author: Willie Walker <william walker sun com>
Date: Wed Jul 1 08:58:20 2009 -0400
Get braille context when not in document content
This is what the old braille generator was doing.
.../scripts/toolkits/Gecko/braille_generator.py | 3 ++-
src/orca/scripts/toolkits/Gecko/formatting.py | 8 --------
2 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/braille_generator.py b/src/orca/scripts/toolkits/Gecko/braille_generator.py
index 23efcaa..1d49d5f 100644
--- a/src/orca/scripts/toolkits/Gecko/braille_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/braille_generator.py
@@ -70,7 +70,6 @@ class BrailleGenerator(braille_generator.BrailleGenerator):
pyatspi.ROLE_UNKNOWN]:
result.extend(braille_generator.BrailleGenerator._generateRoleName(
self, obj, **args))
-
return result
def _generateName(self, obj, **args):
@@ -207,9 +206,11 @@ class BrailleGenerator(braille_generator.BrailleGenerator):
result = []
# ARIA widgets get treated like regular default widgets.
#
+ args['includeContext'] = not self._script.inDocumentContent()
args['isAria'] = self._script.isAriaWidget(obj)
result.extend(braille_generator.BrailleGenerator.\
generateBraille(self, obj, **args))
+ del args['includeContext']
del args['isAria']
return result
diff --git a/src/orca/scripts/toolkits/Gecko/formatting.py b/src/orca/scripts/toolkits/Gecko/formatting.py
index b57466f..6b28c9c 100644
--- a/src/orca/scripts/toolkits/Gecko/formatting.py
+++ b/src/orca/scripts/toolkits/Gecko/formatting.py
@@ -78,14 +78,6 @@ formatting = {
},
},
'braille': {
- 'prefix': {
- 'focused': '[]',
- 'unfocused': '[]'
- },
- 'suffix': {
- 'focused': '[]',
- 'unfocused': '[]'
- },
# [[[TODO: WDW - we're doing very little here. The goal for
# autocomplete boxes at the moment is that their children (e.g.,
# a text area, a menu, etc., do all the interactive work and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]