From 7c63d82f84dd224a5b13436e2edbfca51ca56cc0 Mon Sep 17 00:00:00 2001 From: rahim Date: Tue, 7 Apr 2026 01:39:28 -0700 Subject: [PATCH] fix(html): create HotkeyRegistryController once in connectedCallback (#1240) Co-authored-by: Claude Opus 4.6 (1M context) --- packages/html/src/ui/media-button-element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/html/src/ui/media-button-element.ts b/packages/html/src/ui/media-button-element.ts index c01375da..aa1501dd 100644 --- a/packages/html/src/ui/media-button-element.ts +++ b/packages/html/src/ui/media-button-element.ts @@ -42,7 +42,7 @@ export abstract class MediaButtonElement exte override connectedCallback(): void { super.connectedCallback(); - if (this.hotkeyAction) { + if (this.hotkeyAction && !this.#hotkeyRegistry) { this.#hotkeyRegistry = new HotkeyRegistryController(this, this.hotkeyAction); }