Skip to content

Support Shift+Enter newlines in operator input#817

Draft
KeremP wants to merge 1 commit into
canaryfrom
cursor/operator-shift-enter-newline-327f
Draft

Support Shift+Enter newlines in operator input#817
KeremP wants to merge 1 commit into
canaryfrom
cursor/operator-shift-enter-newline-327f

Conversation

@KeremP
Copy link
Copy Markdown
Contributor

@KeremP KeremP commented Jun 3, 2026

What does this PR do?

Adds shared textarea keybindings for operator text inputs so Enter submits while Shift+Enter inserts a newline, including terminals that report the key as either return or enter. The approval redirect input now uses a multiline textarea with the same keybinding contract instead of a single-line input that stripped newlines.

How did you verify your code works?

  • bun test src/tui/components/chat/input-area.test.ts
  • bun run tsc
  • bun run test
  • bun run lint
  • bun run format:check
  • Manual TUI check in operator mode: sent alpha, explicit Kitty Shift+Enter sequence (Esc [ 13 ; 2 u), then beta; the operator input displayed a two-line draft without submitting.

operator_shift_enter_multiline_input.mp4

Operator Shift+Enter multiline input

Capture: /opt/cursor/artifacts/operator_shift_enter_terminal_capture.txt

Open in Web Open in Cursor 

Co-authored-by: KeremP <kerem@pensarai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants