orca r3987 - in trunk: . src/orca/scripts/apps/soffice
- From: richb svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3987 - in trunk: . src/orca/scripts/apps/soffice
- Date: Wed, 18 Jun 2008 16:23:09 +0000 (UTC)
Author: richb
Date: Wed Jun 18 16:23:09 2008
New Revision: 3987
URL: http://svn.gnome.org/viewvc/orca?rev=3987&view=rev
Log:
* src/orca/scripts/apps/soffice/script.py:
Fixed bug #538835 - Word echo is not echoing the word typed
when return is pressed while creating an oowriter text document.
Modified:
trunk/ChangeLog
trunk/src/orca/scripts/apps/soffice/script.py
Modified: trunk/src/orca/scripts/apps/soffice/script.py
==============================================================================
--- trunk/src/orca/scripts/apps/soffice/script.py (original)
+++ trunk/src/orca/scripts/apps/soffice/script.py Wed Jun 18 16:23:09 2008
@@ -1879,12 +1879,18 @@
- event: the Event
"""
- # If we are losing focus and we in a paragraph in a slide
- # presentation and the last thing the user typed was a Return,
- # and echo by word is enabled, then echo the previous word
- # that the user typed. See bug #538053 for more details.
+ print "XXX: onCaretMoved entered."
+ self.printAncestry(event.source)
+
+ # If we are losing focus and we in:
+ # 1/ a paragraph in an ooimpress slide presentation
+ # 2/ a paragraph in an oowriter text document
+ # and the last thing the user typed was a Return, and echo by word
+ # is enabled, then echo the previous word that the user typed.
+ # See bug #538053 and bug #538835 for more details.
#
if event.detail1 == -1:
+ # ooimpress paragraph in a slide presentation.
rolesList = [pyatspi.ROLE_PARAGRAPH,
pyatspi.ROLE_UNKNOWN,
pyatspi.ROLE_UNKNOWN,
@@ -1894,8 +1900,18 @@
pyatspi.ROLE_ROOT_PANE, \
pyatspi.ROLE_FRAME, \
pyatspi.ROLE_APPLICATION]
- if self.isDesiredFocusedItem(event.source, rolesList) and \
- settings.enableEchoByWord:
+
+ # oowriter paragraph in a text document.
+ rolesList1 = [pyatspi.ROLE_PARAGRAPH,
+ pyatspi.ROLE_UNKNOWN,
+ pyatspi.ROLE_SCROLL_PANE, \
+ pyatspi.ROLE_PANEL, \
+ pyatspi.ROLE_ROOT_PANE, \
+ pyatspi.ROLE_FRAME, \
+ pyatspi.ROLE_APPLICATION]
+ if settings.enableEchoByWord and \
+ (self.isDesiredFocusedItem(event.source, rolesList) or
+ self.isDesiredFocusedItem(event.source, rolesList1)):
if isinstance(orca_state.lastInputEvent,
input_event.KeyboardEvent):
keyString = orca_state.lastNonModifierKeyEvent.event_string
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]