Prevent Ctrl+S from saving useless content. Add support for custom shortcuts in CkEditor

This commit is contained in:
yflory
2018-11-05 16:53:25 +01:00
parent 1d31aab990
commit 1c5847dd01
3 changed files with 23 additions and 0 deletions

View File

@@ -863,6 +863,7 @@ Messenger, MessengerUI, Messages) {
});
$(window).keydown(function (e) {
if (e.which === 69 && (e.ctrlKey || (navigator.platform === "MacIntel" && e.metaKey))) {
e.preventDefault();
Common.createNewPadModal();
}
});