Override existing shortcut key

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
shilpa
Posts: 66
Joined: Mon Jul 04, 2022 8:42 am

Override existing shortcut key

Post 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
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Override existing shortcut key

Post 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
Post Reply