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
No known key found for this signature in database

View File

@ -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;
} }