[DE][PE] Prevent browser event, when press Ctrl+S on dialog header.

This commit is contained in:
Julia Radzhabova 2017-04-06 09:55:47 +03:00
parent 914a4e17dc
commit 7d4c2adb5e
2 changed files with 17 additions and 0 deletions

View file

@ -231,6 +231,15 @@ define([
});
this.initNames(); //for shapes
Common.util.Shortcuts.delegateShortcuts({
shortcuts: {
'command+s,ctrl+s': _.bind(function (e) {
e.preventDefault();
e.stopPropagation();
}, this)
}
});
}
},

View file

@ -221,6 +221,14 @@ define([
});
this.initNames();
Common.util.Shortcuts.delegateShortcuts({
shortcuts: {
'command+s,ctrl+s': _.bind(function (e) {
e.preventDefault();
e.stopPropagation();
}, this)
}
});
}
},