• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT ALT+F4 key combinations listeners  RSS feed

 
bugsidekick
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!