mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-20 20:24:04 +02:00
Merge pull request #20863 from calixteman/fix_intermittent_undo_bar
Only focus the undo bar when the focus isn't inside
This commit is contained in:
commit
94b7f8f998
@ -105,7 +105,9 @@ class EditorUndoBar {
|
||||
// Without the setTimeout, VoiceOver will read out the document title
|
||||
// instead of the popup label.
|
||||
this.#focusTimeout = setTimeout(() => {
|
||||
this.#container.focus();
|
||||
if (!this.#container.contains(document.activeElement)) {
|
||||
this.#container.focus();
|
||||
}
|
||||
this.#focusTimeout = null;
|
||||
}, 100);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user