Skip to content

Accept Ctrl+Enter as the modifier submit shortcut on non-Mac keyboards - #3437

Merged
SawyerHood merged 1 commit into
mainfrom
bb/does-ctrl-enter-on-non-macs-work-to-queue-steer-thr_k326cd9ckf
Sep 10, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/does-ctrl-enter-on-non-macs-work-to-queue-steer-thr_k326cd9ckf

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The follow-up prompt box only recognised Meta+Enter as the modifier submit (PromptBoxInternal.tsx explicitly required metaKey and rejected ctrlKey). On Windows and Linux there was no working key for the secondary action: in Queue mode nothing steered, in Steer mode nothing queued. Worse, Ctrl+Enter fell through to the plain-submit branch, which only checks Shift, so it silently performed the primary action instead. The aria-keyshortcuts attribute, the Settings picker descriptions, and docs/configuration.md all described the shortcut as Command+Enter only. The tasks plugin editor already accepted either Meta or Ctrl plus Enter; the composer was the odd one out.

What changed

  • apps/app/src/components/promptbox/modifier-submit-shortcut.ts (new): isModifierSubmitKeyEvent accepts Enter with Meta or Ctrl and no Alt/Shift, plus platform-aware label and aria helpers built on the existing formatAppShortcut/formatAppShortcutAria mapping ("⌘ Enter" / "Meta+Enter" on Mac, "Ctrl + Enter" / "Control+Enter" elsewhere).
  • PromptBoxInternal.tsx: uses the shared key check and sets aria-keyshortcuts from the platform helper instead of a hard-coded "Meta+Enter".
  • FollowUpPromptBox.tsx: the queue/steer submit tooltips now include the modifier shortcut and what it does, e.g. "Queue follow-up (Enter), Ctrl + Enter to steer", shown only when a modifier submit is available.
  • SettingsView.tsx and docs/configuration.md: mention Ctrl+Enter on Windows and Linux alongside Command+Enter.

No wire or CLI changes.

How you verified

  • New modifier-submit-shortcut.test.ts covers key matching (Ctrl+Shift+Enter and Meta+Alt+Enter rejected) and the platform labels.
  • New PromptBoxInternal.test.tsx cases: Ctrl+Enter on a Linux platform calls onModifierSubmit and not onSubmit, and aria-keyshortcuts reads "Control+Enter" on Linux and "Meta+Enter" on Mac. The Ctrl+Enter case fails before this change (it called onSubmit).
  • New FollowUpPromptBox.test.tsx cases assert the tooltip text for both steer-on-Enter settings on Win32.
  • pnpm exec vitest run on the three promptbox test files: 163 passed.
  • pnpm exec turbo run typecheck lint --filter=@bb/app: passes.

AGENT GENERATED

The follow-up prompt box only treated Meta+Enter as the modifier submit,
so Ctrl+Enter on Windows and Linux fell through to the primary action.
Match either Meta or Ctrl, label the shortcut for the platform in
aria-keyshortcuts and the submit tooltips, and update the settings copy
and docs.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@SawyerHood
SawyerHood merged commit b28e99a into main Sep 10, 2026
16 checks passed
@SawyerHood
SawyerHood deleted the bb/does-ctrl-enter-on-non-macs-work-to-queue-steer-thr_k326cd9ckf branch September 10, 2026 21:36
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.

1 participant