Page 1 of 1

Override existing shortcut key

Posted: Tue Apr 11, 2023 9:34 am
by shilpa
Hi Team,

I would like to override short cut key in web author.
There is a default shortcut key ALT+SHIFT+X for deleting the element tags.
we want it to be CTRL+SHIFT+X.
We tried overriding it using below code in plugin.js but its not working.
e.editor.getActionsManager().setActionShortcut('Author/DeleteElementTags','M1 M2 X');
Could you please provide the action ID for Delete element tags?
And please suggest the proper method to override the shortcut key.

Thanks & Regards
Shilpa.P

Re: Override existing shortcut key

Posted: Tue Apr 11, 2023 12:56 pm
by cristi_talau
Hello,

The ID is 'Author/UnwrapElement'. You can find this ID by following the instructions here: https://www.oxygenxml.com/maven/com/oxy ... ction.html

Best,
Cristian