Skip to main content

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

Could this be a bug in SWT's shell where the shell captures the ALT +
F4 key events even though the title bar is not used?

---------- Forwarded message ----------
From: Suren Amarasingha <suren.amarasingha@xxxxxxxxx>
Date: May 2, 2006 9:28 PM
Subject: SWT ALT+F4 key combinations listeners
To: platform-swt-dev@xxxxxxxxxxx


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?


--
Regards Suren


Back to the top