Improve keyboard shortcuts

This commit is contained in:
Arkadiusz Fal 2022-04-03 13:45:54 +02:00
parent 961b616c74
commit 58931c97fd

View File

@ -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
}