mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Just mmove focus to content when enter on title..
This commit is contained in:
@@ -461,6 +461,14 @@ View.prototype = {
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
$('#title-editable').on("keydown", function(event) {
|
||||
if (event.keyCode == 13) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
$('#content-editable').focus();
|
||||
}
|
||||
});
|
||||
|
||||
// Handle hotkeys
|
||||
$(document).off("keyup"); // FIXME: This prevent exponential calls of save note.
|
||||
$(document).on("keyup", function(event) {
|
||||
|
||||
Reference in New Issue
Block a user