Skip to content
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

Fix the default key display in TUI's warnPrinter #1114

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

tleedjarv
Copy link
Contributor

Fixes #1055 by making the prompt match the default key that is displayed.
Not sure about the claim "Pressing space do nothing." in the original report. Pressing space still works as before and is a valid alternative.

Define Enter explicitly as input in the TUI warning printer. This is not
a functional change, it only changes the default key that is displayed
to the user, to match the prompt.

Enter/Return as input is treated as the default selection, as if user
had pressed any of the default keys for the respective action (if there
are multiple default keys defined then they are all equivalent). The
first default input key is displayed to the user so they know what
action is the default.

In the warning printer the first default input key used to be <space>.
This was a bit confusing as the prompt reads "Press return to continue."
This patch defines Enter as the default input key in its own right,
while also making it the first default which gets displayed to the user.
@gdt gdt merged commit e857a2d into bcpierce00:master Jan 23, 2025
19 of 20 checks passed
@tleedjarv tleedjarv deleted the fix-1055 branch January 23, 2025 15:11
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.

error prompt incorrectly suggests <spc> as a valid action (in old unison)
2 participants