add screenReaderMode option

This commit is contained in:
Labhansh Agrawal 2020-11-24 18:48:50 +05:30
parent f69e359554
commit 87f231d582
9 changed files with 20 additions and 3 deletions

View file

@ -107,7 +107,8 @@ const initial: uiState = Immutable<Mutable<uiState>>({
webGLRenderer: true,
webLinksActivationKey: '',
macOptionSelectionMode: 'vertical',
disableLigatures: true
disableLigatures: true,
screenReaderMode: false
});
const reducer: IUiReducer = (state = initial, action) => {
@ -264,6 +265,10 @@ const reducer: IUiReducer = (state = initial, action) => {
ret.disableLigatures = config.disableLigatures;
}
if (config.screenReaderMode !== undefined) {
ret.screenReaderMode = config.screenReaderMode;
}
ret._lastUpdate = now;
return ret;