I'm currently developing a custom dialog by extending JFace's Dialog. I need to implement a ALT+F4 listener (to close the dialog), but unfortunately, the Dialog uses a Shell internally and that Shell grabs and consumes the ALT+ F4 key events. For purpose of my dialog, I don't use the title bar provided by SWT's shell, and so I can't directly use the Shell's ALT+F4 functionality (basically the Shell would consume the the ALT+F4 and then do nothing).
So is there a way where I can either bypass the Shell's ALT+F4 functionality or indirectly use the Shell's ALT+F4 functionality for my purpose?
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF