fix(command_palette): some note context-aware commands not working

This commit is contained in:
Elian Doran
2025-07-30 22:45:31 +03:00
parent 11d086ef12
commit 5b074c2e22

View File

@@ -247,14 +247,18 @@ class CommandRegistry {
} else if (command.keyboardAction.scope === "text-detail") {
this.executeWithTextDetail(command.commandName);
} else {
appContext.triggerCommand(command.commandName);
appContext.triggerCommand(command.commandName, {
ntxId: appContext.tabManager.activeNtxId
});
}
return;
}
// Fallback for commands without keyboard action reference
if (command.commandName) {
appContext.triggerCommand(command.commandName);
appContext.triggerCommand(command.commandName, {
ntxId: appContext.tabManager.activeNtxId
});
return;
}