Escape button does not close Dialog window [message #1209189] |
Mon, 25 November 2013 11:35 |
Sabari M 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.
|
|
|
Powered by
FUDForum. Page generated in 0.02826 seconds