Save note with Ctrl-S
This commit is contained in:
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) {
|
function getToggleName(id) {
|
||||||
for (i in SETTINGS.routenotetoggles) {
|
for (i in SETTINGS.routenotetoggles) {
|
||||||
if (SETTINGS.routenotetoggles[i].id == id) {
|
if (SETTINGS.routenotetoggles[i].id == id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user