diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-07-26 21:52:20 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-07-26 21:52:20 -0700 |
| commit | 5726ab32f161e4b62ee0d65303b76d9894769c92 (patch) | |
| tree | 2558f498b48045d9bdf95177c8087b2da4f3db67 /Hotline/macOS/ChatView.swift | |
| parent | e7725f97178fdf269973018114e2c5a4f0241251 (diff) | |
Added support for announce in chat, hold shift while pressing enter to send chat.
Diffstat (limited to 'Hotline/macOS/ChatView.swift')
| -rw-r--r-- | Hotline/macOS/ChatView.swift | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Hotline/macOS/ChatView.swift b/Hotline/macOS/ChatView.swift index b7b92d6..cd84369 100644 --- a/Hotline/macOS/ChatView.swift +++ b/Hotline/macOS/ChatView.swift @@ -148,10 +148,9 @@ struct ChatView: View { .textFieldStyle(.plain) .lineLimit(1...5) .multilineTextAlignment(.leading) - // .frame(maxWidth: .infinity) .onSubmit { if !self.input.isEmpty { - model.sendChat(self.input) + model.sendChat(self.input, announce: NSEvent.modifierFlags.contains(.shift)) } self.input = "" } |