Skip to content

fix(site): keep the copy shortcut always on - #11

Merged
koryei merged 2 commits into
mainfrom
fix/always-on-copy-shortcut
Nov 27, 2026
Merged

koryei merged 2 commits into
mainfrom
fix/always-on-copy-shortcut

Conversation

@koryei

@koryei koryei commented Nov 27, 2026

Copy link
Copy Markdown
Owner

What changed

Removes the "Press C" checkbox from the prompt card footer. The single-key
shortcut is now always on, and the C badge on the hero button is always
visible.

File Change
site/index.html drops the <label class="shortcut"> checkbox
site/app.js drops the toggle, the localStorage flag and the now-unused store helper; the keydown handler no longer checks a checkbox
site/styles.css drops .shortcut, .shortcut-off and the coarse-pointer rules for the checkbox
PRODUCT.md the accessibility note no longer claims the shortcut can be turned off

Why

The toggle was a setting for a shortcut nobody needs to disable, and it made
the page's one action conditional on a control most people never touch. The
shortcut already protects the cases that matter: it ignores modifier chords
and keystrokes aimed at a text field, so it cannot swallow Cmd+C or fire
while someone is typing.

How to verify

Serve site/ and check the card footer has no checkbox, then press C:

cd site && python3 -m http.server 8765
  • C copies the prompt and the status line says "Copied. Paste it into your agent and press Enter"
  • Cmd+C / Ctrl+C is left to the browser
  • the C badge is still on the hero button, and still hidden without JavaScript

I drove this in headless Chrome over CDP: 14 checks pass on this branch, and
the same checks fail on main on the three that assert the toggle is gone.

Note for #7

docs/site-copy edits the same footer line (Press C → Press C to copy).
Whichever lands second needs a one-line resolution: keep the deletion.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe vibe@mistral.ai

koryei and others added 2 commits November 26, 2026 22:37
The card footer carried a "Press C" checkbox that turned the single-key
shortcut off and hid the C badge. It was a setting for a shortcut nobody
needs to disable, and it made the page's one action conditional on a
control most people never touch.

C now always copies the prompt. It still ignores modifier chords and
keystrokes aimed at a text field, so it cannot swallow Cmd+C or fire
while someone is typing. The localStorage flag, the .shortcut-off
styles and the now-unused store helper go with the checkbox.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
PRODUCT.md promised the single-key shortcut could be turned off. It
cannot now, so state what is actually true: the shortcut stays out of
the way while you type.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@koryei
koryei merged commit 0096975 into main Nov 27, 2026
@koryei
koryei deleted the fix/always-on-copy-shortcut branch November 27, 2026 03:38
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