[orca/gnome-3-20] Ignore object:state-changed:sensitive events for menu items
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-20] Ignore object:state-changed:sensitive events for menu items
- Date: Thu, 9 Jun 2016 12:17:21 +0000 (UTC)
commit 46f8b55d78a4cb3f8b19df7161866113dd00d21d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Jun 9 08:15:06 2016 -0400
Ignore object:state-changed:sensitive events for menu items
LibreOffice is completely flooding us, and we don't do anything with
this event type for menu items anyway, so there's no point in queueing
them for processing.
src/orca/event_manager.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index c2175a2..eca880a 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -163,6 +163,14 @@ class EventManager:
debug.println(debug.LEVEL_INFO, msg, True)
return True
+ if event.type.startswith('object:state-changed:sensitive'):
+ if role in [pyatspi.ROLE_MENU_ITEM,
+ pyatspi.ROLE_CHECK_MENU_ITEM,
+ pyatspi.ROLE_RADIO_MENU_ITEM]:
+ msg = 'EVENT MANAGER: Ignoring event type due to role'
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return True
+
if event.type.startswith('object:state-changed:showing'):
if role not in [pyatspi.ROLE_ALERT,
pyatspi.ROLE_ANIMATION,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]