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

Disable or add confirmation to SHIFT-Q shortcut to close the game #19

Open
drojf opened this issue Oct 1, 2023 · 0 comments
Open

Disable or add confirmation to SHIFT-Q shortcut to close the game #19

drojf opened this issue Oct 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@drojf
Copy link

drojf commented Oct 1, 2023

It was brought up that PONscripter will immediately close the game if you press SHIFT-Q, which could be easy to do accidentally.

It would be nice to add a confirmation dialog when you quit the game in this manner, or add an option in the game script so it can be disabled - probably a confirmation dialog is easier.

The code that implements this shortcut is here:

if (shift_pressed_status && event->keysym.sym == SDLK_q &&
current_mode == NORMAL_MODE) {
endCommand("end");
}

@drojf drojf added the enhancement New feature or request label Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant