[orca] Treat selection changes like focus changes for the purpose of script activation
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Treat selection changes like focus changes for the purpose of script activation
- Date: Mon, 26 Mar 2018 18:14:22 +0000 (UTC)
commit 3b51f17a2b3624470389dd840736ecbe94c514c1
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Mar 26 14:13:42 2018 -0400
Treat selection changes like focus changes for the purpose of script activation
src/orca/event_manager.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index 21503df..c626b23 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -612,7 +612,8 @@ class EventManager:
return True, "window:activate event"
if eType.startswith('focus') \
- or (eType.startswith('object:state-changed:focused')
+ or (eType.startswith('object:state-changed:focused') \
+ or eType.startswith('object:state-changed:selected') \
and event.detail1):
return True, "Event source claimed focus."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]