Skip to content

Commit b960600

Browse files
committed
Disable predictions for screen readers
Because they'll be rendered and it's useless noise.
1 parent edce599 commit b960600

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PSReadLine/Options.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ private void SetOptionsInternal(SetPSReadLineOption options)
188188
if (options._screenReader.HasValue)
189189
{
190190
Options.ScreenReader = options.ScreenReader;
191+
192+
// Disable prediction for better accessibility
193+
if (Options.ScreenReader)
194+
{
195+
Options.PredictionSource = PredictionSource.None;
196+
}
191197
}
192198
}
193199

0 commit comments

Comments
 (0)