[orca] Update our hackarounds for Calc input line spam to deal with role change
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Update our hackarounds for Calc input line spam to deal with role change
- Date: Wed, 17 Feb 2016 03:07:25 +0000 (UTC)
commit e3aee051a16dfb9edb89ec7985358ffd668e32c5
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 16 22:06:14 2016 -0500
Update our hackarounds for Calc input line spam to deal with role change
src/orca/scripts/apps/soffice/script.py | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 7f0e868..43f99c8 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -736,12 +736,18 @@ class Script(default.Script):
if not event.detail1:
return
- if event.source.getRoleName() == 'text frame':
- return
-
parent = event.source.parent
- if parent and parent.getRoleName() == 'text frame':
- return
+ inputLine = self.utilities.locateInputLine(orca_state.locusOfFocus)
+ if inputLine:
+ if inputLine == event.source:
+ msg = "SOFFICE: Event ignored: spam from inputLine"
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return
+ if self.utilities.isSameObject(inputLine.parent, parent) \
+ or self.utilities.isSameObject(inputLine.parent, event.source):
+ msg = "SOFFICE: Event ignored: spam from inputLine clone"
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return
if parent and parent.getRole() == pyatspi.ROLE_TOOL_BAR:
default.Script.onFocusedChanged(self, event)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]