From 552800e29cf0a834214b7d798c9dd7be4bec219f Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 3 Apr 2022 13:45:54 +0200 Subject: [PATCH] Improve keyboard shortcuts --- Shared/Player/Controls/PlayerControls.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shared/Player/Controls/PlayerControls.swift b/Shared/Player/Controls/PlayerControls.swift index 50da7624..e4186d3d 100644 --- a/Shared/Player/Controls/PlayerControls.swift +++ b/Shared/Player/Controls/PlayerControls.swift @@ -204,8 +204,8 @@ struct PlayerControls: View { #if os(tvOS) .focused($focusedField, equals: .backward) #else - .keyboardShortcut("k") - .keyboardShortcut(.leftArrow) + .keyboardShortcut("k", modifiers: []) + .keyboardShortcut(KeyEquivalent.leftArrow, modifiers: []) #endif #endif @@ -237,8 +237,8 @@ struct PlayerControls: View { #if os(tvOS) .focused($focusedField, equals: .forward) #else - .keyboardShortcut("l") - .keyboardShortcut(.rightArrow) + .keyboardShortcut("l", modifiers: []) + .keyboardShortcut(KeyEquivalent.rightArrow, modifiers: []) #endif #endif }