From b8780f7eb854ce9d3e8d58abc36b5079c83b48cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Pantale=C3=A3o=20Gon=C3=A7alves?= Date: Tue, 7 May 2024 12:30:38 +0200 Subject: [PATCH] Add escape and send keyboard shortcuts for Assist (#2766) ## Summary ## Screenshots ## Link to pull request in Documentation repository Documentation: home-assistant/companion.home-assistant# ## Any other notes --- Sources/App/Assist/AssistView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/App/Assist/AssistView.swift b/Sources/App/Assist/AssistView.swift index 967055146..16e849c9e 100644 --- a/Sources/App/Assist/AssistView.swift +++ b/Sources/App/Assist/AssistView.swift @@ -52,6 +52,7 @@ struct AssistView: View { } .buttonStyle(.plain) .tint(Color(uiColor: .label)) + .keyboardShortcut(.cancelAction) } private var pickerMaxWidth: CGFloat? { @@ -164,6 +165,7 @@ struct AssistView: View { .font(.system(size: 32)) .tint(Color.asset(Asset.Colors.haPrimary)) .animation(.smooth, value: viewModel.isRecording) + .keyboardShortcut(.defaultAction) } private var assistMicButton: some View {