Skip to content

Commit a634d43

Browse files
authored
Merge pull request #1390 from mathjax/feature/keep-regions
Add hidden option to retain regions and highlighting, as requested by Volker
2 parents e8bfee1 + 1db53db commit a634d43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ts/a11y/explorer/KeyExplorer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,10 @@ export class SpeechExplorer
459459
*/
460460
public FocusOut(_event: FocusEvent) {
461461
if (this.current && !this.focusSpeech) {
462-
this.setCurrent(null);
463-
this.Stop();
462+
if (!this.document.options.keepRegions) {
463+
this.setCurrent(null);
464+
this.Stop();
465+
}
464466
if (!document.hasFocus()) {
465467
this.focusTop();
466468
}

0 commit comments

Comments
 (0)