Skip to content

Commit 78fe12b

Browse files
committed
Add shortcut command+M to hide chat
1 parent 48a7d2b commit 78fe12b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Core/Sources/SuggestionWidget/ChatWindowView.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ struct ChatWindowView: View {
2323
Group {
2424
if let chat = viewModel.chat {
2525
ChatPanel(chat: chat)
26+
.background {
27+
Button(action: {
28+
viewModel.isPanelDisplayed = false
29+
}) {
30+
EmptyView()
31+
}
32+
.keyboardShortcut("M", modifiers: [.command])
33+
}
2634
}
2735
}
2836
.opacity(viewModel.isPanelDisplayed ? 1 : 0)

0 commit comments

Comments
 (0)