From b68262fff5366ff51c54abdb3d5251fa2dd2f23d Mon Sep 17 00:00:00 2001 From: XMLHexagram Date: Tue, 19 Nov 2024 21:40:40 +0100 Subject: [PATCH] fix: update shortcut alt+N -> option+N on macOS --- .../playback_controller/constants/controller_items.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/widgets/playback_controller/constants/controller_items.dart b/lib/widgets/playback_controller/constants/controller_items.dart index 97a1d0d69..1032b30d8 100644 --- a/lib/widgets/playback_controller/constants/controller_items.dart +++ b/lib/widgets/playback_controller/constants/controller_items.dart @@ -1,3 +1,5 @@ +import 'dart:io' show Platform; + import 'package:flutter/services.dart'; import 'package:provider/provider.dart'; import 'package:fluent_ui/fluent_ui.dart'; @@ -448,7 +450,9 @@ List controllerItems = [ mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text(S.of(context).coverWall), - const ShortcutText('Alt+N'), + ShortcutText( + Platform.isMacOS ? '⌥+N' : 'Alt+N' + ), ], ), onPressed: () {