[orca] Improve heuristic to identify spellcheck dialog
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Improve heuristic to identify spellcheck dialog
- Date: Wed, 28 Feb 2018 12:00:33 +0000 (UTC)
commit 1fe97c2cbdacaedc22a7641926c03a28ada12038
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Feb 28 12:46:25 2018 +0100
Improve heuristic to identify spellcheck dialog
src/orca/scripts/apps/soffice/spellcheck.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/spellcheck.py b/src/orca/scripts/apps/soffice/spellcheck.py
index d9e288d..6a2b4a6 100644
--- a/src/orca/scripts/apps/soffice/spellcheck.py
+++ b/src/orca/scripts/apps/soffice/spellcheck.py
@@ -61,8 +61,11 @@ class SpellCheck(spellcheck.SpellCheck):
child = self._findChildDialog(window[0])
if child and child.getRole() == pyatspi.ROLE_DIALOG:
isPageTabList = lambda x: x and x.getRole() == pyatspi.ROLE_PAGE_TAB_LIST
- if not pyatspi.findDescendant(child, isPageTabList):
- return True
+ if pyatspi.findDescendant(child, isPageTabList):
+ return False
+
+ isComboBox = lambda x: x and x.getRole() == pyatspi.ROLE_COMBO_BOX
+ return pyatspi.findDescendant(child, isComboBox)
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]