Add hide player button cancel action

This commit is contained in:
Arkadiusz Fal 2022-02-17 00:01:48 +01:00
parent ae861bce65
commit 1d24705c92

View File

@ -90,7 +90,9 @@ struct PlayerControls: View {
HStack(spacing: 4) { HStack(spacing: 4) {
hidePlayerButton hidePlayerButton
Text(playbackStatus) Text(playbackStatus)
Spacer() Spacer()
ToggleBackendButton() ToggleBackendButton()
Text("") Text("")
StreamControl() StreamControl()
@ -106,6 +108,7 @@ struct PlayerControls: View {
} label: { } label: {
Image(systemName: "chevron.down.circle.fill") Image(systemName: "chevron.down.circle.fill")
} }
.keyboardShortcut(.cancelAction)
} }
private var playbackStatus: String { private var playbackStatus: String {