[orca] Ensure we correctly speak the role of edit spin buttons
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ensure we correctly speak the role of edit spin buttons
- Date: Wed, 10 Oct 2018 19:08:44 +0000 (UTC)
commit 6476cf6b1c078732c1cb94f0f45ec6cfd4941772
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Oct 10 15:07:58 2018 -0400
Ensure we correctly speak the role of edit spin buttons
src/orca/scripts/web/speech_generator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 615d070e2..986bd007e 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -333,7 +333,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
text = self._script.utilities.queryNonEmptyText(obj)
if text and end not in [None, text.characterCount]:
return []
- if role in [pyatspi.ROLE_ENTRY, pyatspi.ROLE_PASSWORD_TEXT]:
+ if role in [pyatspi.ROLE_ENTRY, pyatspi.ROLE_PASSWORD_TEXT, pyatspi.ROLE_SPIN_BUTTON]:
result.append(self.getLocalizedRoleName(obj, **args))
elif obj.parent and not obj.parent.getState().contains(pyatspi.STATE_EDITABLE):
if lastKey not in ["Home", "End", "Up", "Down", "Left", "Right", "Page_Up", "Page_Down"]:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]