Commit cc55050e authored by Joanmarie Diggs's avatar Joanmarie Diggs

Treat text block element roles inside editable documents at text areas

In this particular situation, they are for all intents and purposes
inputs.
parent 364d84db
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment