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

Treat closing dialog (e.g. by pressing ESC) as cancel. #231

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

Conversation

brunchboy
Copy link

I discovered that in my project that makes heavy use of seesaw, when people hit the ESC key thinking that they will cancel the dangerous operation they changed their mind about, instead the operation is completed. This change should fix the problem within seesaw, treating the ESC key the same as pressing the Cancel button in a seesaw/confirm dialog, rather than (as it does today) pressing the OK button. (See https://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html for details.)

In the mean time, I’m going to have to replace all my uses of seesaw/confirm with something safer.

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.

1 participant