[orca] Filter out some name-change events that tend to be spammy
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Filter out some name-change events that tend to be spammy
- Date: Tue, 21 Apr 2020 16:27:15 +0000 (UTC)
commit 81abde4947dcfe2a6f8d14a579ba3630aa92c57f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Apr 21 12:26:14 2020 -0400
Filter out some name-change events that tend to be spammy
src/orca/event_manager.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index d3e6f45a4..366b5ea2e 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -171,8 +171,13 @@ class EventManager:
if event.type.startswith('object:property-change:accessible-name'):
if role in [pyatspi.ROLE_CANVAS,
pyatspi.ROLE_ICON,
+ pyatspi.ROLE_LABEL, # gnome-shell spam
+ pyatspi.ROLE_LIST_ITEM, # Web app spam
+ pyatspi.ROLE_LIST, # Web app spam
+ pyatspi.ROLE_SECTION, # Web app spam
pyatspi.ROLE_TABLE_ROW, # Thunderbird spam
pyatspi.ROLE_TABLE_CELL, # Thunderbird spam
+ pyatspi.ROLE_MENU,
pyatspi.ROLE_MENU_ITEM]:
msg = 'EVENT MANAGER: Ignoring event type due to role'
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]