forked from firka/flutter
Menu bar accelerators (#114852)
* Add MenuMenuAcceleratorLabel to support accelerators. * Review Changes * Review Changed * Fix default label builder to use characters * Remove golden test that shouldn't have been there.
This commit is contained in:
@@ -49,9 +49,9 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Shortcuts(
|
||||
shortcuts: <ShortcutActivator, Intent>{
|
||||
LogicalKeySet(LogicalKeyboardKey.arrowUp): const IncrementIntent(),
|
||||
LogicalKeySet(LogicalKeyboardKey.arrowDown): const DecrementIntent(),
|
||||
shortcuts: const <ShortcutActivator, Intent>{
|
||||
SingleActivator(LogicalKeyboardKey.arrowUp): IncrementIntent(),
|
||||
SingleActivator(LogicalKeyboardKey.arrowDown): DecrementIntent(),
|
||||
},
|
||||
child: Actions(
|
||||
actions: <Type, Action<Intent>>{
|
||||
|
||||
Reference in New Issue
Block a user