[orca] Don't display the braille EOL indicator for non-editable WebKitGtk paragraphs
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't display the braille EOL indicator for non-editable WebKitGtk paragraphs
- Date: Sun, 12 Aug 2012 21:36:31 +0000 (UTC)
commit 8df0b0a60741be246a94d79b5f2c57c4f3f26316
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Aug 12 17:34:09 2012 -0400
Don't display the braille EOL indicator for non-editable WebKitGtk paragraphs
.../toolkits/WebKitGtk/braille_generator.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/braille_generator.py b/src/orca/scripts/toolkits/WebKitGtk/braille_generator.py
index 496414d..69b6eb2 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/braille_generator.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/braille_generator.py
@@ -99,3 +99,12 @@ class BrailleGenerator(braille_generator.BrailleGenerator):
return braille_generator.BrailleGenerator._generateAncestors(
self, obj, **args)
+
+ def _generateEol(self, obj, **args):
+ if self._script.utilities.isWebKitGtk(obj) \
+ and obj.getRole() == pyatspi.ROLE_PARAGRAPH \
+ and not obj.getState().contains(pyatspi.STATE_EDITABLE):
+ return []
+
+ return braille_generator.BrailleGenerator._generateEol(
+ self, obj, **args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]