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

Commit 2c94cc5

Browse files
Generate a11y events for widgets that use kFlutterSemanticsFlagIsToggled (#31582)
1 parent ebcd86f commit 2c94cc5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shell/platform/linux/fl_accessible_node.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ static struct {
1616
{ATK_STATE_CHECKABLE, kFlutterSemanticsFlagHasCheckedState, FALSE},
1717
{ATK_STATE_FOCUSABLE, kFlutterSemanticsFlagIsFocusable, FALSE},
1818
{ATK_STATE_FOCUSED, kFlutterSemanticsFlagIsFocused, FALSE},
19-
{ATK_STATE_CHECKED, kFlutterSemanticsFlagIsChecked, FALSE},
19+
{ATK_STATE_CHECKED,
20+
static_cast<FlutterSemanticsFlag>(kFlutterSemanticsFlagIsChecked |
21+
kFlutterSemanticsFlagIsToggled),
22+
FALSE},
2023
{ATK_STATE_SELECTED, kFlutterSemanticsFlagIsSelected, FALSE},
2124
{ATK_STATE_ENABLED, kFlutterSemanticsFlagIsEnabled, FALSE},
2225
{ATK_STATE_READ_ONLY, kFlutterSemanticsFlagIsReadOnly, FALSE},

0 commit comments

Comments
 (0)