Override existing shortcut key
Posted: Tue Apr 11, 2023 9:34 am
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
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