mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
remove appContext as copied dependency across components
This commit is contained in:
@@ -35,7 +35,7 @@ async function setupActionsForElement(scope, $el, component) {
|
||||
|
||||
getActionsForScope("window").then(actions => {
|
||||
for (const action of actions) {
|
||||
for (const shortcut of action.effectiveShortcuts) {console.log(`Binding ${shortcut} for ${action.actionName}`);
|
||||
for (const shortcut of action.effectiveShortcuts) {
|
||||
utils.bindGlobalShortcut(shortcut, () => appContext.triggerCommand(action.actionName));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user