mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix: starting dictation from the keyboard moves focus to the recording bar (#32630)
This commit is contained in:
parent
3b638ecb2b
commit
dda976463b
1 changed files with 5 additions and 0 deletions
|
|
@ -265,6 +265,11 @@
|
|||
loading = false;
|
||||
startDurationCounter();
|
||||
|
||||
if (document.activeElement === document.body || !document.activeElement?.checkVisibility()) {
|
||||
await tick();
|
||||
document.getElementById('confirm-recording-button')?.focus();
|
||||
}
|
||||
|
||||
await requestWakeLock();
|
||||
|
||||
audioChunks = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue