fixed: note shortcut

This commit is contained in:
quenousimporte 2023-10-03 13:43:19 +02:00
parent 7bb607753e
commit 9c30427af9
1 changed files with 3 additions and 2 deletions

View File

@ -2545,11 +2545,12 @@ function mainkeydownhandler()
var note = localdata.find(n =>
{
var shortcut = n.content.match(/shortcut: (.*)/);
if (shortcut)
if (shortcut && shortcutmatches(event, shortcut[1]))
{
console.log("Loading note '" + n.title + "' from header shortcut " + shortcut[1]);
event.preventDefault();
loadnote(n.title);
return shortcutmatches(event, shortcut[1]);
return true;
}
return false;
});