@@ -124,7 +124,7 @@ void main() {
124124
125125 group ('Common text editing shortcuts: ' ,
126126 () {
127- final TargetPlatformVariant allExceptMacOS = TargetPlatformVariant (TargetPlatform .values.toSet ()..remove ( TargetPlatform .macOS));
127+ final TargetPlatformVariant allExceptApple = TargetPlatformVariant (TargetPlatform .values.toSet ()..removeAll ( < TargetPlatform > [ TargetPlatform .macOS, TargetPlatform .iOS] ));
128128
129129 group ('backspace' , () {
130130 const LogicalKeyboardKey trigger = LogicalKeyboardKey .backspace;
@@ -491,8 +491,8 @@ void main() {
491491 group ('word modifier + backspace' , () {
492492 const LogicalKeyboardKey trigger = LogicalKeyboardKey .backspace;
493493 SingleActivator wordModifierBackspace () {
494- final bool isMacOS = defaultTargetPlatform == TargetPlatform .macOS;
495- return SingleActivator (trigger, control: ! isMacOS , alt: isMacOS );
494+ final bool isApple = defaultTargetPlatform == TargetPlatform .macOS || defaultTargetPlatform == TargetPlatform .iOS ;
495+ return SingleActivator (trigger, control: ! isApple , alt: isApple );
496496 }
497497
498498 testWidgets ('WordModifier-backspace' , (WidgetTester tester) async {
@@ -631,8 +631,8 @@ void main() {
631631 group ('word modifier + delete' , () {
632632 const LogicalKeyboardKey trigger = LogicalKeyboardKey .delete;
633633 SingleActivator wordModifierDelete () {
634- final bool isMacOS = defaultTargetPlatform == TargetPlatform .macOS;
635- return SingleActivator (trigger, control: ! isMacOS , alt: isMacOS );
634+ final bool isApple = defaultTargetPlatform == TargetPlatform .macOS || defaultTargetPlatform == TargetPlatform .iOS ;
635+ return SingleActivator (trigger, control: ! isApple , alt: isApple );
636636 }
637637
638638 testWidgets ('WordModifier-delete' , (WidgetTester tester) async {
@@ -764,8 +764,8 @@ void main() {
764764 group ('line modifier + backspace' , () {
765765 const LogicalKeyboardKey trigger = LogicalKeyboardKey .backspace;
766766 SingleActivator lineModifierBackspace () {
767- final bool isMacOS = defaultTargetPlatform == TargetPlatform .macOS;
768- return SingleActivator (trigger, meta: isMacOS , alt: ! isMacOS );
767+ final bool isApple = defaultTargetPlatform == TargetPlatform .macOS || defaultTargetPlatform == TargetPlatform .iOS ;
768+ return SingleActivator (trigger, meta: isApple , alt: ! isApple );
769769 }
770770
771771 testWidgets ('alt-backspace' , (WidgetTester tester) async {
@@ -945,8 +945,8 @@ void main() {
945945 group ('line modifier + delete' , () {
946946 const LogicalKeyboardKey trigger = LogicalKeyboardKey .delete;
947947 SingleActivator lineModifierDelete () {
948- final bool isMacOS = defaultTargetPlatform == TargetPlatform .macOS;
949- return SingleActivator (trigger, meta: isMacOS , alt: ! isMacOS );
948+ final bool isApple = defaultTargetPlatform == TargetPlatform .macOS || defaultTargetPlatform == TargetPlatform .iOS ;
949+ return SingleActivator (trigger, meta: isApple , alt: ! isApple );
950950 }
951951
952952 testWidgets ('alt-delete' , (WidgetTester tester) async {
@@ -1167,7 +1167,7 @@ void main() {
11671167 expect (controller.selection, const TextSelection .collapsed (
11681168 offset: 4 ,
11691169 ));
1170- }, variant: allExceptMacOS );
1170+ }, variant: allExceptApple );
11711171
11721172 testWidgets ('line modifier + arrow key movement' , (WidgetTester tester) async {
11731173 controller.text = testText;
@@ -1181,7 +1181,7 @@ void main() {
11811181 expect (controller.selection, const TextSelection .collapsed (
11821182 offset: 20 ,
11831183 ));
1184- }, variant: allExceptMacOS );
1184+ }, variant: allExceptApple );
11851185 });
11861186
11871187 group ('right' , () {
@@ -1230,7 +1230,7 @@ void main() {
12301230 expect (controller.selection, const TextSelection .collapsed (
12311231 offset: 10 ,
12321232 ));
1233- }, variant: allExceptMacOS );
1233+ }, variant: allExceptApple );
12341234
12351235 testWidgets ('line modifier + arrow key movement' , (WidgetTester tester) async {
12361236 controller.text = testText;
@@ -1245,7 +1245,7 @@ void main() {
12451245 offset: 35 , // Before the newline character.
12461246 affinity: TextAffinity .upstream,
12471247 ));
1248- }, variant: allExceptMacOS );
1248+ }, variant: allExceptApple );
12491249 });
12501250
12511251 group ('With initial non-collapsed selection' , () {
@@ -1352,7 +1352,7 @@ void main() {
13521352 expect (controller.selection, const TextSelection .collapsed (
13531353 offset: 28 , // After "good".
13541354 ));
1355- }, variant: allExceptMacOS );
1355+ }, variant: allExceptApple );
13561356
13571357 testWidgets ('line modifier + arrow key movement' , (WidgetTester tester) async {
13581358 controller.text = testText;
@@ -1406,7 +1406,7 @@ void main() {
14061406 offset: 35 , // After "people".
14071407 affinity: TextAffinity .upstream,
14081408 ));
1409- }, variant: allExceptMacOS );
1409+ }, variant: allExceptApple );
14101410 });
14111411
14121412 group ('vertical movement' , () {
0 commit comments