From d3517e43a981757b5371db87ddac322b6d0630e3 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Fri, 11 Mar 2022 19:35:10 +1300 Subject: [PATCH] Generate a11y events for widgets that use kFlutterSemanticsFlagIsToggled (flutter/engine#31582) --- .../src/flutter/shell/platform/linux/fl_accessible_node.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/linux/fl_accessible_node.cc b/engine/src/flutter/shell/platform/linux/fl_accessible_node.cc index 21cdb24de9..924fc14ae8 100644 --- a/engine/src/flutter/shell/platform/linux/fl_accessible_node.cc +++ b/engine/src/flutter/shell/platform/linux/fl_accessible_node.cc @@ -16,7 +16,10 @@ static struct { {ATK_STATE_CHECKABLE, kFlutterSemanticsFlagHasCheckedState, FALSE}, {ATK_STATE_FOCUSABLE, kFlutterSemanticsFlagIsFocusable, FALSE}, {ATK_STATE_FOCUSED, kFlutterSemanticsFlagIsFocused, FALSE}, - {ATK_STATE_CHECKED, kFlutterSemanticsFlagIsChecked, FALSE}, + {ATK_STATE_CHECKED, + static_cast(kFlutterSemanticsFlagIsChecked | + kFlutterSemanticsFlagIsToggled), + FALSE}, {ATK_STATE_SELECTED, kFlutterSemanticsFlagIsSelected, FALSE}, {ATK_STATE_ENABLED, kFlutterSemanticsFlagIsEnabled, FALSE}, {ATK_STATE_READ_ONLY, kFlutterSemanticsFlagIsReadOnly, FALSE},