launcher improvements

This commit is contained in:
zadam
2022-12-01 16:22:04 +01:00
parent 7aa801fc1f
commit 0e68e8069b
10 changed files with 177 additions and 112 deletions

View File

@@ -8,10 +8,10 @@ function getKeyboardActions() {
}
function getShortcutsForNotes() {
const attrs = becca.findAttributes('label', 'keyboardShortcut');
const labels = becca.findAttributes('label', 'keyboardShortcut');
// launchers have different handling
return attrs.filter(attr => becca.getNote(attr.noteId)?.type !== 'launcher');
return labels.filter(attr => becca.getNote(attr.noteId)?.type !== 'launcher');
}
module.exports = {