mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Just mmove focus to content when enter on title..
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user