From 2292312705217cd0a4733d0989e2facb928fe814 Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Sat, 22 Jan 2022 14:30:05 +0100 Subject: [PATCH] fix media keys crash --- lib/components/Player/Player.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/Player/Player.dart b/lib/components/Player/Player.dart index 87bc8fee..78571eb8 100644 --- a/lib/components/Player/Player.dart +++ b/lib/components/Player/Player.dart @@ -48,9 +48,9 @@ class _PlayerState extends State with WidgetsBindingObserver { HotKey(KeyCode.space, scope: HotKeyScope.inapp), _playOrPause, ), - // causaes crash in Windows for aquiring global hotkey of + // causaes crash in Windows and macOS for aquiring global hotkey of // keyboard media buttons - if (!Platform.isWindows) ...[ + if (!Platform.isWindows && !Platform.isMacOS) ...[ GlobalKeyActions( HotKey(KeyCode.mediaPlayPause), _playOrPause,