orca r3916 - in trunk: . src/orca
- From: richb svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3916 - in trunk: . src/orca
- Date: Fri, 23 May 2008 19:51:32 +0000 (UTC)
Author: richb
Date: Fri May 23 19:51:32 2008
New Revision: 3916
URL: http://svn.gnome.org/viewvc/orca?rev=3916&view=rev
Log:
* src/orca/orca.py:
Fix for bug #530368 â Only move focus if the event is for the
focused/active window.
Modified:
trunk/ChangeLog
trunk/src/orca/orca.py
Modified: trunk/src/orca/orca.py
==============================================================================
--- trunk/src/orca/orca.py (original)
+++ trunk/src/orca/orca.py Fri May 23 19:51:32 2008
@@ -178,6 +178,14 @@
if obj == orca_state.locusOfFocus:
return
+ # If this event is not for the currently active script, then just return.
+ #
+ if event and event.source and orca_state.activeScript:
+ currentApp = orca_state.activeScript.app.name
+ if currentApp != event.host_application.name and \
+ currentApp != event.source.getApplication().name:
+ return
+
oldLocusOfFocus = orca_state.locusOfFocus
try:
# Just to see if we have a valid object.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]