mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 19:05:11 +00:00
Respect reserved keybindings when registering extensions
This commit is contained in:
parent
c63f33d83b
commit
54c33f2ade
3 changed files with 179 additions and 29 deletions
|
|
@ -814,7 +814,7 @@ export class InteractiveMode {
|
|||
* Set up keyboard shortcuts registered by extensions.
|
||||
*/
|
||||
private setupExtensionShortcuts(extensionRunner: ExtensionRunner): void {
|
||||
const shortcuts = extensionRunner.getShortcuts();
|
||||
const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
|
||||
if (shortcuts.size === 0) return;
|
||||
|
||||
// Create a context for shortcut handlers
|
||||
|
|
@ -3505,7 +3505,7 @@ export class InteractiveMode {
|
|||
// Add extension-registered shortcuts
|
||||
const extensionRunner = this.session.extensionRunner;
|
||||
if (extensionRunner) {
|
||||
const shortcuts = extensionRunner.getShortcuts();
|
||||
const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
|
||||
if (shortcuts.size > 0) {
|
||||
hotkeys += `
|
||||
**Extensions**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue