fix(html): create HotkeyRegistryController once in connectedCallback (#1240)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
rahim
2026-04-07 01:39:28 -07:00
committed by GitHub
co-authored by Claude Opus 4.6
parent d9d893b726
commit 7c63d82f84
+1 -1
View File
@@ -42,7 +42,7 @@ export abstract class MediaButtonElement<Core extends MediaButtonComponent> exte
override connectedCallback(): void {
super.connectedCallback();
if (this.hotkeyAction) {
if (this.hotkeyAction && !this.#hotkeyRegistry) {
this.#hotkeyRegistry = new HotkeyRegistryController(this, this.hotkeyAction);
}