mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
moving components to its own directory
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user