Prevent tabbing on locked note

This commit is contained in:
Mo Bitar
2019-04-02 11:45:23 -05:00
parent f6359f4fa2
commit ce7192726e

View File

@@ -815,6 +815,9 @@ angular.module('app')
var parent = this;
var handleTab = function (event) {
if (!event.shiftKey && event.which == 9) {
if(parent.note.locked) {
return;
}
event.preventDefault();
// Using document.execCommand gives us undo support