Save note with Ctrl-S

Skylar Ittner 4 years ago
parent 142349de64
commit a7c41a7577

@ -178,6 +178,20 @@ $(".view-main").on("blur", "#notenumberinput,#notestreetinput", function () {
}
});
/*
* Save note with Ctrl-S
*/
$(".view-main").on("keydown", ".page[data-name=editnote]", function (event) {
if (event.ctrlKey || event.metaKey) {
switch (String.fromCharCode(event.which).toLowerCase()) {
case 's':
event.preventDefault();
saveNote($("#savenotebtn").data("noteid"));
break;
}
}
});
function getToggleName(id) {
for (i in SETTINGS.routenotetoggles) {
if (SETTINGS.routenotetoggles[i].id == id) {

Loading…
Cancel
Save