[orca] Treat text block element roles inside editable documents at text areas
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Treat text block element roles inside editable documents at text areas
- Date: Tue, 29 Oct 2019 13:01:07 +0000 (UTC)
commit cc55050e84d122f7c82cd38408cdce65b8d434d9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Oct 29 09:00:12 2019 -0400
Treat text block element roles inside editable documents at text areas
In this particular situation, they are for all intents and purposes
inputs.
src/orca/scripts/web/script_utilities.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 23a1ee894..8417b83f6 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -723,6 +723,11 @@ class Utilities(script_utilities.Utilities):
and not obj.childCount:
return True
+ if role in self._textBlockElementRoles():
+ document = self.getDocumentForObject(obj)
+ if document and document.getState().contains(pyatspi.STATE_EDITABLE):
+ return True
+
return super().isTextArea(obj)
def isReadOnlyTextArea(self, obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]