Compare commits

...

1 Commits

Author SHA1 Message Date
Lambda
66a96f652c feat(views): always-visible ⌘↵ hint on send buttons (MUL-2713)
Surface the Cmd/Ctrl+Enter shortcut as a visible <kbd> next to the
chat and comment send buttons. The tooltip-only hint required hover
discovery, so users pressing bare Enter never learned why nothing
was sent.

Co-authored-by: multica-agent <github@multica.ai>
2026-06-17 03:10:52 +08:00
2 changed files with 14 additions and 0 deletions

View File

@@ -304,6 +304,14 @@ export function ChatInput({
onSelect={(file) => editorRef.current?.uploadFile(file)}
/>
)}
{!isRunning && (
<kbd
aria-hidden
className="hidden sm:inline-flex h-4 items-center gap-0.5 rounded border border-border/50 bg-background/30 px-1 font-mono text-[10px] leading-none text-muted-foreground select-none"
>
{formatShortcut(modKey, enterKey)}
</kbd>
)}
<SubmitButton
onClick={handleSend}
disabled={isEmpty || isSubmitting || !!disabled || !!noAgent || pendingUploads > 0}

View File

@@ -163,6 +163,12 @@ function CommentInput({ issueId, onSubmit }: CommentInputProps) {
multiple
onSelect={(file) => editorRef.current?.uploadFile(file)}
/>
<kbd
aria-hidden
className="hidden sm:inline-flex h-4 items-center gap-0.5 rounded border border-border/50 bg-background/30 px-1 font-mono text-[10px] leading-none text-muted-foreground select-none"
>
{formatShortcut(modKey, enterKey)}
</kbd>
<SubmitButton
onClick={handleSubmit}
disabled={isEmpty}