mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
21 lines
515 B
JavaScript
21 lines
515 B
JavaScript
"use strict";
|
|
|
|
const keyboardActions = require('../../services/keyboard_actions');
|
|
const becca = require('../../becca/becca');
|
|
|
|
function getKeyboardActions() {
|
|
return keyboardActions.getKeyboardActions();
|
|
}
|
|
|
|
function getShortcutsForNotes() {
|
|
const labels = becca.findAttributes('label', 'keyboardShortcut');
|
|
|
|
// launchers have different handling
|
|
return labels.filter(attr => becca.getNote(attr.noteId)?.type !== 'launcher');
|
|
}
|
|
|
|
module.exports = {
|
|
getKeyboardActions,
|
|
getShortcutsForNotes
|
|
};
|