moving components to its own directory

This commit is contained in:
zadam
2022-12-01 13:07:23 +01:00
parent 1a6c9be065
commit fc080f785b
65 changed files with 160 additions and 156 deletions

View File

@@ -10,20 +10,8 @@ function getKeyboardActions() {
function getShortcutsForNotes() {
const attrs = becca.findAttributes('label', 'keyboardShortcut');
const map = {};
for (const attr of attrs) {
const note = becca.getNote(attr.noteId);
if (note?.type === 'launcher') {
// launchers have different handling
continue;
}
map[attr.value] = attr.noteId;
}
return map;
// launchers have different handling
return attrs.filter(attr => becca.getNote(attr.noteId)?.type !== 'launcher');
}
module.exports = {