I need to overwrite the default escape key keymap. I want to call my own function to cancel the editor when the user presses escape. I have a keymap for handling the Ctrl+s key. Escape doesn't seem to work the same way. Any ideas?
keymap({
'Ctrl-s': (e) => {
if (onCtrlSave) {
let value = getHtml(e.doc);
onCtrlSave({
sender: 'kendoEditor',
value: value
});
}
return true;
}
}),