Open nialljawad96 opened 3 months ago
Thanks for the report. I was able to replicate this on web only.
Noted. Feel free to redirect to team-web
if it turns out that web engine help is needed.
@yjbanov Should I do anything here? Whats team-web
It seems that the problem is here: https://github.com/flutter/flutter/blob/14df7be3f9471a97f34e4601fb7710850373ac3b/packages/flutter/lib/src/widgets/app.dart#L1264C5-L1266C81
Only the TAB key is bound:
// Keyboard traversal.
SingleActivator(LogicalKeyboardKey.tab): NextFocusIntent(),
SingleActivator(LogicalKeyboardKey.tab, shift: true): PreviousFocusIntent(),
Steps to reproduce
Expected results
Should be able to traverse showMenu
Actual results
Not able to traverse showMenu with keyboard keys.
Code sample
Code sample
```dart import 'package:flutter/material.dart'; class MenuContainer extends StatelessWidget { @override Widget build(BuildContext context) { return GestureDetector( onTap: () { showMenu( context: context, items: [ PopupMenuItem( child: Icon(Icons.add), ), PopupMenuItem( child: Icon(Icons.add), ), PopupMenuItem( child: Icon(Icons.add), ), PopupMenuItem( child: Icon(Icons.add), ), ], color: Colors.green[100], shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(30), ), position: RelativeRect.fromLTRB( MediaQuery.of(context).size.width / 2 - 100, MediaQuery.of(context).size.height / 2 - 100, MediaQuery.of(context).size.width / 2 + 100, MediaQuery.of(context).size.height / 2 + 100, ), ); }, child: Container( width: 100, height: 100, color: Colors.red, ), ); } } ```Screenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console [Paste your logs here] ```Flutter Doctor output
Doctor output
```console [✓] Flutter (Channel beta, 3.22.0-0.3.pre, on macOS 14.4 23E214 darwin-x64, locale en-GB) [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] IntelliJ IDEA Community Edition (version 2023.3.5) [✓] VS Code (version 1.89.0) [✓] Connected device (2 available) [✓] Network resources ```