To add a little bit to that, in Oxygen 18.0 we added the possibility to register an action along with its default shortcut from a "Workspace Access" plugin extension type using a construct like:ro.sync.exml.workspace.api.standalone.StandalonePluginWorkspace.getActionsProvider().registerAction(actionKey, action, "M1 M3 Y")
The benefit of this new API is that the action will also be present in the Oxygen Menu Shortcut Keys list and the user will be able to modify its default shortcut from the application. Also the action accepts platform independent ways of specifying the modifiers where:
Code: Select all
* <li>M1 represents the Command key on MacOS X, and the Ctrl key on other platforms.</li>
* <li>M2 represents the Shift key.</li>
* <li>M3 represents the Option key on MacOS X, and the Alt key on other platforms.</li>
* <li>M4 represents the Ctrl key on MacOS X, and is undefined on other platforms.</li>
so you may also consider at some point trying to migrate to this newer API way of doing things.
About this remark:
However, strings from the Edit dialog box doesn't work and doesn't look like those in example, e.g. in example plugin they are like "ctrl alt DOWN", but in Edit dialog box they are "M1+M3+↓" (I need universal keys, but neither do OS-specific work).
Latest everything, tried Mac/Win.
Indeed on Mac OSX the shortcut editor dialog shows symbols instead of the "serialized" key version, but on Windows it should show a shortcut version that you can use directly by replacing "+" with a space.