From 3c971f582f879582fd64fd62e7909a3ffd430ca3 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 22 Dec 2022 00:23:43 +0100 Subject: [PATCH] Add shortcut to watch next hide --- Shared/Player/WatchNextView.swift | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Shared/Player/WatchNextView.swift b/Shared/Player/WatchNextView.swift index e4232f2a..073cdcd4 100644 --- a/Shared/Player/WatchNextView.swift +++ b/Shared/Player/WatchNextView.swift @@ -181,11 +181,14 @@ struct WatchNextView: View { } @ViewBuilder var hideCloseButton: some View { - if model.isHideable { - hideButton - } else { - closeButton + Group { + if model.isHideable { + hideButton + } else { + closeButton + } } + .keyboardShortcut(.cancelAction) } var hideButton: some View {