|How to enable CTRL+C KeyBinding for custom handler [message #1400745]
||Mon, 14 July 2014 16:59
| Thorsten Schlathölter
Registered: February 2012
I need some help with the activation of commands using key-bindings.
I have added a popupmenu for Copy/Paste in my RCP application using org.eclipse.ui.menu. I have set the commands org.eclipse.ui.edit.copy and org.eclipse.ui.edit.paste respectively. In addition I have added a handler for the commands that activates the handlers when a specific activeMenuSelection is found. Now the commands work just fine from the context menu itself but it is not possible to trigger them with the keyboard binding CTRL+C, CTRL+V. Tracing shows that the default WidgetMethodHandler is active at the time the CTRL+C is pressed.
Can someone tell me what I am missing here?
Thanks in advance
Powered by FUDForum
. Page generated in 0.11949 seconds