Prevent Ctrl+S from saving useless content. Add support for custom shortcuts in CkEditor
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user