mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 05:37:21 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user