-
Notifications
You must be signed in to change notification settings - Fork 34
Name the yield shortcut the way a Mac prints it #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,7 +61,7 @@ <h1 id="problem-title">Loading interview...</h1> | |
| id="yield-turn" | ||
| class="pill-button" | ||
| type="button" | ||
| title="Alt+Enter" | ||
| title="Alt+Enter / Option+Enter" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The commit says this follows Run tests, but that button shows the Mac chord as the Command sign with no plus (⌘Enter). To match it, this would show the Option sign the same way (⌥Enter), written as the entity |
||
| aria-keyshortcuts="Alt+Enter" | ||
| > | ||
| Your turn is done | ||
|
|
@@ -467,8 +467,8 @@ <h2>Media preflight</h2> | |
| hidden | ||
| ></button> | ||
| <p id="turn-status" class="muted small" role="status"> | ||
| Take your time. Choose Your turn is done (Alt+Enter) to let Jim | ||
| reply early. | ||
| Take your time. Choose Your turn is done (Alt+Enter / Option+Enter) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| to let Jim reply early. | ||
| </p> | ||
| </div> | ||
| <div | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1973,7 +1973,7 @@ function applyThinking(thinking) { | |
| nodes.thinking.setAttribute("aria-pressed", String(thinking)); | ||
| nodes.turnStatus.textContent = thinking | ||
| ? "Jim will wait. Speak again or choose Continue when ready. The timer keeps running." | ||
| : "Take your time. Choose Your turn is done (Alt+Enter) to let Jim reply early."; | ||
| : "Take your time. Choose Your turn is done (Alt+Enter / Option+Enter) to let Jim reply early."; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sentence now lives in two places: here and in the initial copy in interview.html. The chord also appears a third time, in the button title. This PR had to edit all three in step, and the test pins each one separately. Could the page set the initial status from JS so the sentence has one source? |
||
| recordReplay("lifecycle", { | ||
| state: thinking ? "thinking_started" : "thinking_ended", | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These assertions compare each label to a literal, not to the handler. If
isYieldShortcutchanges its chord, the labels go stale and this still passes. Exporting the label from lib.js next toisYieldShortcutand building all three strings from it would tie the label to what the handler matches.