Skip to content

Commit 963b539

Browse files
fix(web): Ctrl/Cmd+Enter sends new threads when the send shortcut needs it
When the send shortcut requires Mod+Enter, the default Mod+Enter "start in background" binding on new-thread drafts claimed the chord first, so a normal send started the thread in the background. Shift that binding to Mod+Shift+Enter in that context, as already done for composer.sendAlternate. Fixes #31011 AI-assisted; verified with the tests and tools listed above.
1 parent eddcfe5 commit 963b539

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/keybindings.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ function shortcutForContext(binding: ResolvedKeybindingRule, context: ShortcutMa
115115
// Resolve persisted Mod+Enter against send preference without rewriting saved shortcuts.
116116
if (
117117
context.composerRequiresModifier &&
118-
binding.command === "composer.sendAlternate" &&
118+
(binding.command === "composer.sendAlternate" ||
119+
binding.command === "composer.sendBackground") &&
119120
shortcut.key === "enter" &&
120121
shortcut.modKey &&
121122
!shortcut.metaKey &&

0 commit comments

Comments
 (0)