Repository navigation
fix(site): keep the copy shortcut always on - #11
Merged
Merged
Conversation
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>
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.
What changed
Removes the "Press C" checkbox from the prompt card footer. The single-key
shortcut is now always on, and the
Cbadge on the hero button is alwaysvisible.
site/index.html<label class="shortcut">checkboxsite/app.jslocalStorageflag and the now-unusedstorehelper; thekeydownhandler no longer checks a checkboxsite/styles.css.shortcut,.shortcut-offand the coarse-pointer rules for the checkboxPRODUCT.mdWhy
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+Cor firewhile someone is typing.
How to verify
Serve
site/and check the card footer has no checkbox, then pressC:Ccopies the prompt and the status line says "Copied. Paste it into your agent and press Enter"Cmd+C/Ctrl+Cis left to the browserCbadge is still on the hero button, and still hidden without JavaScriptI drove this in headless Chrome over CDP: 14 checks pass on this branch, and
the same checks fail on
mainon the three that assert the toggle is gone.Note for #7
docs/site-copyedits 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