[orca] Mouse Review: Eliminate double-presenting of editable table-cell text
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Mouse Review: Eliminate double-presenting of editable table-cell text
- Date: Wed, 27 May 2020 00:10:07 +0000 (UTC)
commit fecf0345f751c972ee6218dd0dd5c47e80b5a26a
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue May 26 20:07:18 2020 -0400
Mouse Review: Eliminate double-presenting of editable table-cell text
When the mouse pointer moves over a new cell with text, presentObject
causes the cell content to be presented. If that content is the same
as the new string, we wind up double presenting the information.
src/orca/mouse_review.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/orca/mouse_review.py b/src/orca/mouse_review.py
index 8caab330b..0bafd9487 100644
--- a/src/orca/mouse_review.py
+++ b/src/orca/mouse_review.py
@@ -305,6 +305,9 @@ class _ItemContext:
return True
if not self._script.utilities.isEditableTextArea(self._obj):
return True
+ if self._obj.getRole() == pyatspi.ROLE_TABLE_CELL \
+ and self._string.getString() == self._script.utilities.displayedText(self._obj):
+ return True
if self._string != prior._string and self._string.present():
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]