bolerio / seco

Advanced Scripting IDE for JVM based languages.
28 stars 4 forks source link

All dialogs should support the ESC key #23

Closed secouser closed 9 years ago

secouser commented 9 years ago

Many of the dialog boxes that open in the various menus don't react to the ESC key. Some do...this behavior should be centralized somewhere ideally.

secouser commented 9 years ago

Use GUIUtil.createAndShowDlg throughout, with a JPanel as the content of the dialog, and it will do the right thing. For existing dialogs, make the extend SecoDialog, instead of JDialog, and it will do the right thing as well.