fix: starting dictation from the keyboard moves focus to the recording bar (#32630)

This commit is contained in:
G30 2026-10-20 14:08:41 -04:00 • committed by GitHub
parent 3b638ecb2b
commit dda976463b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = [];