Just mmove focus to content when enter on title..

This commit is contained in:
Matias De lellis
2022-05-14 09:42:06 -03:00
parent c0fae81e7e
commit 39c436c352

View File

@@ -461,6 +461,14 @@ View.prototype = {
event.stopPropagation(); event.stopPropagation();
}); });
$('#title-editable').on("keydown", function(event) {
if (event.keyCode == 13) {
event.preventDefault();
event.stopPropagation();
$('#content-editable').focus();
}
});
// Handle hotkeys // Handle hotkeys
$(document).off("keyup"); // FIXME: This prevent exponential calls of save note. $(document).off("keyup"); // FIXME: This prevent exponential calls of save note.
$(document).on("keyup", function(event) { $(document).on("keyup", function(event) {