-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: samehereengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.f: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Steps to reproduce
- Requisites
a. Accessibility (semantics tree) must not be enabled, and
b. Flutter-web app must be iframed. - Click on one of the (non-text-field) widgets within the Flutter-web app.
- Tab through the items using the physical keyboard.
Expected results
It should tab through items within the iframed Flutter-web content.
Actual results
The focus doesn't move into the Flutter-web iframe. Tabbing moves between items on the iframe host (wherever the focus was before clicking into the Flutter-web iframe).
Code sample
Code sample
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() async {
runApp(
MaterialApp(
theme: ThemeData(useMaterial3: true),
title: 'Test',
home: Scaffold(
body: Row(
children: [
IconButton(
icon: const Icon(Icons.play_arrow, semanticLabel: 'Play movie'),
onPressed: () {},
),
IconButton(
icon: const Icon(Icons.play_arrow, semanticLabel: 'Play movie'),
onPressed: () {},
),
IconButton(
icon: const Icon(Icons.play_arrow, semanticLabel: 'Play movie'),
onPressed: () {},
),
],
),
),
),
);
// ISSUE:
// 0. Requisites: (a) Accessibility (semantics tree) must not be enabled, and Flutter-web app must be iframed.
// 1. Click on one of the buttons (say the middle one).
// 2. Tab through the items using the physical keyboard.
//
// Expected: It should tab through items within the Flutter-web iframe.
// Actual: The focus doesn't move into the Flutter-web iframe. Tabbing moves between items on the iframe host.
// Uncomment this line to enable the Semantics tree, which makes it work properly.
//SemanticsBinding.instance.ensureSemantics();
}Dvergar
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: samehereengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.f: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team