[orca] Fix for bug 659264: return on onFocus if the object is not focused
- From: Alejandro PiÃeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug 659264: return on onFocus if the object is not focused
- Date: Fri, 16 Sep 2011 17:33:25 +0000 (UTC)
commit 37337e0787c3a45e265ac59947545d54eba1844b
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date: Fri Sep 16 18:14:14 2011 +0200
Fix for bug 659264: return on onFocus if the object is not focused
src/orca/scripts/default.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 191a6df..c768455 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -3033,6 +3033,10 @@ class Script(script.Script):
- event: the Event
"""
+ if event.type.startswith("focus:") \
+ and not event.source.getState().contains(pyatspi.STATE_FOCUSED):
+ return
+
# [[[TODO: WDW - HACK to deal with quirky GTK+ menu behavior.
# The problem is that when moving to submenus in a menu, the
# menu gets focus first and then the submenu gets focus all
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]