Skip to content

Commit 67b6fc7

Browse files
committed
Disable predictions for screen readers
Because they'll be rendered and it's useless noise.
1 parent 80e3683 commit 67b6fc7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PSReadLine/Options.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ 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+
Options.PredictionSource = PredictionSource.None;
191195
}
192196
}
193197

0 commit comments

Comments
 (0)