[orca] Fix for bug 659379 - Orca is not presenting panel menus and menu items in fallback mode
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug 659379 - Orca is not presenting panel menus and menu items in fallback mode
- Date: Sun, 18 Sep 2011 21:58:21 +0000 (UTC)
commit 8fe1751129abe578ad74749a021b886fabe71fda
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sun Sep 18 17:54:19 2011 -0400
Fix for bug 659379 - Orca is not presenting panel menus and menu items in fallback mode
src/orca/scripts/default.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index c768455..3c7c3f7 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -3033,8 +3033,10 @@ class Script(script.Script):
- event: the Event
"""
+ state = event.source.getState()
if event.type.startswith("focus:") \
- and not event.source.getState().contains(pyatspi.STATE_FOCUSED):
+ and state.contains(pyatspi.STATE_FOCUSABLE) \
+ and not state.contains(pyatspi.STATE_FOCUSED):
return
# [[[TODO: WDW - HACK to deal with quirky GTK+ menu behavior.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]