Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Escape button does not close Dialog window
Escape button does not close Dialog window [message #1209189] Mon, 25 November 2013 11:35
Sabari M is currently offline Sabari MFriend
Messages: 3
Registered: June 2013
Junior Member
Background

I have an eclipse RCP application in which a dialog window is open upon clicking a toolbar button. The window does not close on hitting the keyboard 'ESC' button. I have a custom keybinding for 'ESC' button on my application under "org.eclipse.ui.contexts.window" context.

Issue

On debugging the issue I was able to find out that the escape key is getting consumed by the above binding since Window.open() method does not set the focus to the current window. Hence, I have to manually call Window.create() to create a new shell for the window and then set the focus using Window.getShell().setFocus() method. Is this an expected behaviour?

Note: The window used to get closed without manually calling the setFocus method on Eclipse 3.6.x and I'm facing this issue only after upgrading the eclipse version to 4.2.2.
Previous Topic:Eclipse compatibilty with Ncomputing device
Next Topic:What does the "No Symbol" mean
Goto Forum:
  


Current Time: Sat Apr 27 03:23:39 GMT 2024

Powered by FUDForum. Page generated in 0.02826 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top