orca r4155 - in trunk: . src/orca/scripts/toolkits/Gecko
- From: wwalker svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4155 - in trunk: . src/orca/scripts/toolkits/Gecko
- Date: Fri, 5 Sep 2008 13:36:41 +0000 (UTC)
Author: wwalker
Date: Fri Sep 5 13:36:40 2008
New Revision: 4155
URL: http://svn.gnome.org/viewvc/orca?rev=4155&view=rev
Log:
Fix for bug 550873 - Some live region text updates are not presented
Modified:
trunk/ChangeLog
trunk/src/orca/scripts/toolkits/Gecko/script.py
Modified: trunk/src/orca/scripts/toolkits/Gecko/script.py
==============================================================================
--- trunk/src/orca/scripts/toolkits/Gecko/script.py (original)
+++ trunk/src/orca/scripts/toolkits/Gecko/script.py Fri Sep 5 13:36:40 2008
@@ -2782,7 +2782,23 @@
# This eliminates all ARIA widgets that are not considered live
if 'xml-roles' in attrs:
return False
- else: # object:text-inserted events
+ elif event.type.startswith('object:text-changed:insert'):
+ # We do this since we sometimes get text inserted events
+ # without the ":system" suffix for live regions (see bug
+ # 550873). [[[WDW - this probably could be conflated into
+ # the block above, making that block check for just
+ # object:text-changed:insert" events, but I wanted to be a
+ # little more conservative since the live region stuff was
+ # done long ago and I've forgotten many of the details.]]]
+ #
+ stateset = event.source.getState()
+ if stateset.contains(pyatspi.STATE_FOCUSABLE) \
+ or stateset.contains(pyatspi.STATE_SELECTABLE) \
+ or not stateset.contains(pyatspi.STATE_VISIBLE):
+ return False
+ attrs = self._getAttrDictionary(event.source)
+ return 'container-live' in attrs
+ else:
return False
# This last filter gets rid of some events that come in after
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]