(In reply to comment #20)
> Is there a way to get RCP to also use setAccelerator whenever it sets shortcut
> labels? That would ensure that menu items work correctly.
RCP and Eclipse SDK use a KeyDown filter to process key shortcuts. We have multi-keystroke shortcuts and shortcuts for behaviour not in the menus directly.
But even for some more standard accelerators (CTRL+Y or ALT+/) the system has to dispatch to a handler based on a number of factors, including which part is active, what's the selection, etc. Using setAccelerator(*) would fire the Selection for that MenuItem, producing the wrong executing in about half of the Eclipse SDK cases.
(In reply to comment #20)
> Is there a way to get RCP to also use setAccelerator whenever it sets shortcut
> labels? That would ensure that menu items work correctly.
RCP and Eclipse SDK use a KeyDown filter to process key shortcuts. We have multi-keystroke shortcuts and shortcuts for behaviour not in the menus directly.
But even for some more standard accelerators (CTRL+Y or ALT+/) the system has to dispatch to a handler based on a number of factors, including which part is active, what's the selection, etc. Using setAccelerator(*) would fire the Selection for that MenuItem, producing the wrong executing in about half of the Eclipse SDK cases.
PW