From 9c7fb870c1a7c80741fafdfc6837d4b92e373b2d Mon Sep 17 00:00:00 2001 From: Deepankar Sharma Date: Wed, 13 Aug 2025 13:32:54 -0400 Subject: Add terminal setup command for Shift+Enter and Ctrl+Enter support (#3289) Co-authored-by: jacob314 --- packages/cli/src/config/keyBindings.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/cli/src/config/keyBindings.ts') diff --git a/packages/cli/src/config/keyBindings.ts b/packages/cli/src/config/keyBindings.ts index 6f4a21a2..640bf9de 100644 --- a/packages/cli/src/config/keyBindings.ts +++ b/packages/cli/src/config/keyBindings.ts @@ -129,20 +129,24 @@ export const defaultKeyBindings: KeyBindingConfig = { // Text input // Original: key.name === 'return' && !key.ctrl && !key.meta && !key.paste + // Must also exclude shift to allow shift+enter for newline [Command.SUBMIT]: [ { key: 'return', ctrl: false, command: false, paste: false, + shift: false, }, ], // Original: key.name === 'return' && (key.ctrl || key.meta || key.paste) // Split into multiple data-driven bindings + // Now also includes shift+enter for multi-line input [Command.NEWLINE]: [ { key: 'return', ctrl: true }, { key: 'return', command: true }, { key: 'return', paste: true }, + { key: 'return', shift: true }, ], // External tools -- cgit v1.2.3