overriding the DEL key behavior [message #172489] |
Thu, 14 February 2008 00:43 |
John Yotka Messages: 144 Registered: July 2009 |
Senior Member |
|
|
I'm trying to disable the DEL key from deleting most types of editparts
on my diagram. I've tried the overriding of the
getDestroyElementCommand in the various xxxSemanticEditPolicy classes,
but this isn't working correctly when those editparts are children of a
part that can be DELeted.
Next I tried to add an extension to the org.eclipse.ui.bindings and
org.eclipse.ui.commands to put my own handler in for the DEL key. but
the keypress event for the DEL key must be getting trapped before my
handler is accessed. (Note if I change the key sequence to ALT+DEL, my
handler is used.)
How do I override the DEL key behavior?
|
|
|
Powered by
FUDForum. Page generated in 0.02715 seconds