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

SDL: Exit the application when the escape key is pressed #1407

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ccawley2011
Copy link
Contributor

While SDL2 will quit the application when Alt+F4 is pressed, SDL1 does not. This makes it difficult to exit the application when it was started in full-screen.

This was tested with Linux and X11, although this behavior may differ on other platforms.

@lotharsm
Copy link
Member

I just checked this with a current build running on Ubuntu 19.10. It seems that - at least for me - pressing the ESC key has no effect. Maybe this is limited to SDL1?

@endrift
Copy link
Member

endrift commented Mar 29, 2020

The reason I never merged this was because hitting escape by mistake and then losing everything unsaved has happened to me far too many times for me to think this is a good idea.

@Codex-
Copy link

Codex- commented Aug 4, 2020

What if instead of a single escape press it was multiple or duration based to alleviate accidental quits?

@rawr51919
Copy link

Or just use alt-f4 for both sdl1 and sdl2?

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.

None yet

5 participants