Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit bf6e493

Browse files
committed
fixes selectable text
1 parent a2dff12 commit bf6e493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shell/platform/common/cpp/accessibility_bridge.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ void AccessibilityBridge::SetRoleFromFlutterUpdate(ui::AXNodeData& node_data,
219219
node_data.role = ax::mojom::Role::kButton;
220220
return;
221221
}
222-
if (flags & FlutterSemanticsFlag::kFlutterSemanticsFlagIsTextField) {
222+
if (flags & FlutterSemanticsFlag::kFlutterSemanticsFlagIsTextField &&
223+
!(flags & FlutterSemanticsFlag::kFlutterSemanticsFlagIsReadOnly)) {
223224
node_data.role = ax::mojom::Role::kTextField;
224225
return;
225226
}

0 commit comments

Comments
 (0)