Repository navigation
Accept Ctrl+Enter as the modifier submit shortcut on non-Mac keyboards - #3437
Merged
SawyerHood merged 1 commit intoSep 10, 2026
Conversation
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
deleted the
bb/does-ctrl-enter-on-non-macs-work-to-queue-steer-thr_k326cd9ckf
branch
September 10, 2026 21:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The follow-up prompt box only recognised Meta+Enter as the modifier submit (
PromptBoxInternal.tsxexplicitly requiredmetaKeyand rejectedctrlKey). 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. Thearia-keyshortcutsattribute, the Settings picker descriptions, anddocs/configuration.mdall 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):isModifierSubmitKeyEventaccepts Enter with Meta or Ctrl and no Alt/Shift, plus platform-aware label and aria helpers built on the existingformatAppShortcut/formatAppShortcutAriamapping ("⌘ Enter" / "Meta+Enter" on Mac, "Ctrl + Enter" / "Control+Enter" elsewhere).PromptBoxInternal.tsx: uses the shared key check and setsaria-keyshortcutsfrom 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.tsxanddocs/configuration.md: mention Ctrl+Enter on Windows and Linux alongside Command+Enter.No wire or CLI changes.
How you verified
modifier-submit-shortcut.test.tscovers key matching (Ctrl+Shift+Enter and Meta+Alt+Enter rejected) and the platform labels.PromptBoxInternal.test.tsxcases: Ctrl+Enter on a Linux platform callsonModifierSubmitand notonSubmit, andaria-keyshortcutsreads "Control+Enter" on Linux and "Meta+Enter" on Mac. The Ctrl+Enter case fails before this change (it calledonSubmit).FollowUpPromptBox.test.tsxcases assert the tooltip text for both steer-on-Enter settings on Win32.pnpm exec vitest runon the three promptbox test files: 163 passed.pnpm exec turbo run typecheck lint --filter=@bb/app: passes.