Commit 91baf080 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team

builder.js No more enter to save locally

Removed the key binding that triggered a local save when typing a carriage
return. Local save is now triggered on loss of focus
parent d84ca0ac
......@@ -265,12 +265,13 @@ Builder.prototype = {
e = e || window.event;
var key = e.keyCode
if (key == 0) key = e.which
if (key == 13) $(input).trigger("save");
// if (key == 13) $(input).trigger("save");
else if (key == 27) m.update()
}
$(input).focusout(function() {
setTimeout(function(){
m.update()
$(input).trigger("save");
// m.update()
}, 500);
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment