Overriding Ctrl-W behavior [message #1115740] |
Tue, 24 September 2013 10:11  |
Eclipse User |
|
|
|
Hello,
In my E4 app, I'd like to bind a command to the M1+W shortcut, which should translate to Ctrl-W on Windows.
I have created a Binding Context with the ID "org.eclipse.ui.contexts.window", and a KeyBinding that links the shortcut and the command. The KeyBinding has the ID "org.eclipse.ui.file.close".
Unfortunately, when I launch my app and do a Ctrl-W, I see a little popup at the lower left of the screen with two possible actions. One is "Close", which is the default command, and the other is the command that I have bound to the shortcut.
Is there something more that I should override?
Thanks for your help!
|
|
|
|
|
|
Re: Overriding Ctrl-W behavior [message #1221996 is a reply to message #1115740] |
Thu, 19 December 2013 04:59  |
Eclipse User |
|
|
|
Thanks for your answer.
What would be the best place/moment to remove the bindings?
I tried to do it in a method @ProcessRemovals, in a class defined as lifeCycleURI, but then I cannot access the binding tables in the context...
|
|
|
Powered by
FUDForum. Page generated in 0.03647 seconds