We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ccde56 commit 589514cCopy full SHA for 589514c
apps/staged/src/lib/features/diff/DiffCommitSessionLauncher.svelte
@@ -99,6 +99,14 @@
99
syncTextareaHeight();
100
}
101
102
+ function handleKeydown(e: KeyboardEvent) {
103
+ // Cmd+Enter to submit
104
+ if (e.key === 'Enter' && e.metaKey && draftPrompt.trim() && !starting) {
105
+ e.preventDefault();
106
+ handleSubmit();
107
+ }
108
109
+
110
function syncTextareaHeight() {
111
if (!textareaElement) return;
112
@@ -174,6 +182,7 @@
174
182
rows="3"
175
183
disabled={starting}
176
184
oninput={handleInput}
185
+ onkeydown={handleKeydown}
177
186
items={hashtagItems}
178
187
/>
179
188
<div class="composer-footer">
0 commit comments