trilium/src/routes/api/keys.js
2020-06-20 12:31:38 +02:00

23 lines
496 B
JavaScript

"use strict";
const keyboardActions = require('../../services/keyboard_actions');
const sql = require('../../services/sql');
function getKeyboardActions() {
return keyboardActions.getKeyboardActions();
}
function getShortcutsForNotes() {
return sql.getMap(`
SELECT value, noteId
FROM attributes
WHERE isDeleted = 0
AND type = 'label'
AND name = 'keyboardShortcut'`);
}
module.exports = {
getKeyboardActions,
getShortcutsForNotes
};