[orca] Mouse review: Eliminate double-presentation of string in new object
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Mouse review: Eliminate double-presentation of string in new object
- Date: Tue, 26 May 2020 22:53:30 +0000 (UTC)
commit 13353f5b598a5eb8bf0e2932ada60a5c7db029d4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue May 26 18:47:24 2020 -0400
Mouse review: Eliminate double-presentation of string in new object
When the mouse pointer is over a new object, we'll present that object's
name. For certain objects (e.g. editable text areas), we then present the
string. But for some text objects whose name comes from content, this
results in double-speaking the name. So check for this condition and
return early.
src/orca/mouse_review.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/orca/mouse_review.py b/src/orca/mouse_review.py
index fbe9ca5d5..8caab330b 100644
--- a/src/orca/mouse_review.py
+++ b/src/orca/mouse_review.py
@@ -301,6 +301,8 @@ class _ItemContext:
priorObj = prior._obj or self._getContainer()
orca.emitRegionChanged(self._obj, mode=orca.MOUSE_REVIEW)
self._script.presentObject(self._obj, priorObj=priorObj, inMouseReview=True)
+ if self._string.getString() == self._obj.name:
+ return True
if not self._script.utilities.isEditableTextArea(self._obj):
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]