mirror of
https://github.com/zadam/trilium.git
synced 2026-01-06 14:44:25 +01:00
fix(command_palette): some note context-aware commands not working
This commit is contained in:
parent
11d086ef12
commit
5b074c2e22
@ -247,14 +247,18 @@ class CommandRegistry {
|
|||||||
} else if (command.keyboardAction.scope === "text-detail") {
|
} else if (command.keyboardAction.scope === "text-detail") {
|
||||||
this.executeWithTextDetail(command.commandName);
|
this.executeWithTextDetail(command.commandName);
|
||||||
} else {
|
} else {
|
||||||
appContext.triggerCommand(command.commandName);
|
appContext.triggerCommand(command.commandName, {
|
||||||
|
ntxId: appContext.tabManager.activeNtxId
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback for commands without keyboard action reference
|
// Fallback for commands without keyboard action reference
|
||||||
if (command.commandName) {
|
if (command.commandName) {
|
||||||
appContext.triggerCommand(command.commandName);
|
appContext.triggerCommand(command.commandName, {
|
||||||
|
ntxId: appContext.tabManager.activeNtxId
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user