aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/ChatView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/macOS/ChatView.swift')
-rw-r--r--Hotline/macOS/ChatView.swift3
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 = ""
}