20 references to KeyChar
aspire (5)
Interaction\ConsoleInteractionService.cs (5)
717
if (key.Key == ConsoleKey.Enter || key.
KeyChar
is '\r' or '\n')
723
if (char.ToLowerInvariant(key.
KeyChar
) == char.ToLowerInvariant(yesChoice))
725
MessageConsole.WriteLine(key.
KeyChar
.ToString());
729
if (char.ToLowerInvariant(key.
KeyChar
) == char.ToLowerInvariant(noChoice))
731
MessageConsole.WriteLine(key.
KeyChar
.ToString());
dotnet (1)
InteractiveConsole.cs (1)
63
return pressedKey.
KeyChar
.ToString().ToLowerInvariant().Equals(
dotnet-svcutil-lib (3)
CmdCredentialsProvider.cs (3)
293
else if (!Char.IsControl(keyInfo.
KeyChar
))
295
userInput.Append(keyInfo.
KeyChar
);
296
System.Console.Write(isPassword ? '*' : keyInfo.
KeyChar
);
Microsoft.DotNet.HotReload.Watch (1)
UI\ConsoleInputReader.cs (1)
66
var keyDisplay = (key.Modifiers == ConsoleModifiers.None) ? key.
KeyChar
.ToString() : key.Key.ToString();
System.Console (10)
System\IO\KeyParser.cs (1)
36
return new ConsoleKeyInfo(parsed.
KeyChar
, parsed.Key, (parsed.Modifiers & ConsoleModifiers.Shift) != 0, alt: true, (parsed.Modifiers & ConsoleModifiers.Control) != 0);
System\IO\StdInReader.cs (9)
187
else if (IsEol(keyInfo.
KeyChar
))
238
_readLineSB.Append(keyInfo.
KeyChar
);
253
else if (keyInfo.
KeyChar
!= '\0')
257
_readLineSB.Append(keyInfo.
KeyChar
);
261
EchoToTerminal(keyInfo.
KeyChar
);
294
if (!IsEol(keyInfo.
KeyChar
))
296
return keyInfo.
KeyChar
;
330
if (!intercept && keyInfo.
KeyChar
!= '\0')
332
EchoToTerminal(keyInfo.
KeyChar
);