Skip to content

Commit 1db53db

Browse files
committed
Add hidden option to retain regions and highlighting, as requested by Volker
1 parent e8bfee1 commit 1db53db

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)