Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] SWT ALT+F4 key combinations listeners

Hi all

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 the 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?


Back to the top