I'm not sure if those are the correct keystrokes for undo. Have you put a
breakpoint in handleKeyPressed to see what the event actually is and if it
gets sent at all?

Undo/Redo are global actions with keybindings associated with the menu
entries. The menu entries might be intercepting the keystrokes (although
I've been told that this isn't the case if the action is disabled). Either
way, you'll want to register action handlers for those global actions since
that allows the user to use the menu as well. The same it true for delete.
KeyHandler is intended for stuff that doesn't appear in menus, although for
previous version of eclipse DELETE was not stolen by hte edit menu

The actionDefinitionId is correctly set, (the key binding is correctly
shown in my Edit Menu) but the accelerator CTRL + Z or Del doesnt work...

Randy Hudson wrote:
> I'm not sure if those are the correct keystrokes for undo. Have you put a
> breakpoint in handleKeyPressed to see what the event actually is and if it
> gets sent at all?
>
> Undo/Redo are global actions with keybindings associated with the menu
> entries. The menu entries might be intercepting the keystrokes (although
> I've been told that this isn't the case if the action is disabled). Either
> way, you'll want to register action handlers for those global actions since
> that allows the user to use the menu as well. The same it true for delete.
> KeyHandler is intended for stuff that doesn't appear in menus, although for
> previous version of eclipse DELETE was not stolen by hte edit menu
>