mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
Submodule extensions-builtin/sdnext-modernui updated: 5077f1be64...9cd5b7ed03
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+2
-2
@@ -183,8 +183,8 @@ async function selectHotKeyElement(e: KeyboardEvent, id: string) {
|
||||
log('hotkey', { key: e.key, meta: e.metaKey, ctrl: e.ctrlKey, alt: e.altKey, id, elid: elem?.id, elnode: elem?.nodeName });
|
||||
if (elem) {
|
||||
e.preventDefault();
|
||||
if (elem.nodeName === 'BUTTON') elem.click();
|
||||
else elem.focus();
|
||||
if (elem.nodeName === 'BUTTON') (elem as HTMLButtonElement).click();
|
||||
else (elem as HTMLElement).focus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user