Skip to content

feat: implement <Kbd /> and shortcut tooltip - #21971

Merged
jakehwll merged 5 commits into
mainfrom
jakehwll/21650-submit-prompt-shortcut
Feb 6, 2026
Merged

jakehwll merged 5 commits into
mainfrom
jakehwll/21650-submit-prompt-shortcut

Conversation

@jakehwll

@jakehwll jakehwll commented Feb 6, 2026 •

Copy link
Copy Markdown
Contributor

Closes #21650

This pull-request adds a <Tooltip /> with <Kbd /> modifiers to the Run Task button describing the shortcut how to submit the prompt quickly without having to navigate to the ↑ button.

CleanShot 2026-02-06 at 19 40 58@2x

It should be noted that the keyboard shortcut already existed so we don't need to implement that here.

	// L222-L227
	const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
		// Submit form on Cmd+Enter (Mac) or Ctrl+Enter (Windows/Linux)
		if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
			onSubmit(e);
		}
	};

@DanielleMaywood DanielleMaywood left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but I think there is a typo with select-none being select-none5

Comment thread site/src/components/Kbd/Kbd.tsx Resolved
@jakehwll
jakehwll merged commit 193e4bd into main Feb 6, 2026
27 of 28 checks passed
@jakehwll
jakehwll deleted the jakehwll/21650-submit-prompt-shortcut branch February 6, 2026 10:29
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tasks: Add keyboard shortcut (Cmd/Ctrl + Enter) to submit prompt

2 participants