Skip to content

PromptOkCancel: confirm when Enter key is pressed#3596

Merged
AaronVanGeffen merged 3 commits intoOpenLoco:masterfrom
LeeSpork:YN
Jan 6, 2026
Merged

PromptOkCancel: confirm when Enter key is pressed#3596
AaronVanGeffen merged 3 commits intoOpenLoco:masterfrom
LeeSpork:YN

Conversation

@LeeSpork
Copy link
Copy Markdown
Contributor

Our confirmation prompts already canceled on key up of the Escape key. Now it can also be confirmed with return (enter) and keypad enter keys.

I also considered adding Y/N keys (SDLK_y, SDLK_n), but I was not sure if I should.

I am not sure if this counts as a feature exactly, so I listed it as a change.

Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I think sticking with return/enter makes sense, too.

@AaronVanGeffen AaronVanGeffen modified the milestones: v25.12, v25.12+ Jan 5, 2026
@AaronVanGeffen AaronVanGeffen enabled auto-merge (squash) January 6, 2026 14:07
@AaronVanGeffen AaronVanGeffen merged commit 0fb0f46 into OpenLoco:master Jan 6, 2026
14 checks passed
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.

2 participants