mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 03:32:30 +08:00
21 lines
509 B
TypeScript
21 lines
509 B
TypeScript
"use strict";
|
|
|
|
import keyboardActions = require('../../services/keyboard_actions');
|
|
import 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');
|
|
}
|
|
|
|
export = {
|
|
getKeyboardActions,
|
|
getShortcutsForNotes
|
|
};
|