19 references to Control
System.Console (19)
System\ConsoleKeyInfo.cs (1)
33
_mods |= ConsoleModifiers.
Control
;
System\IO\KeyParser.cs (18)
36
return new ConsoleKeyInfo(parsed.KeyChar, parsed.Key, (parsed.Modifiers & ConsoleModifiers.Shift) != 0, alt: true, (parsed.Modifiers & ConsoleModifiers.
Control
) != 0);
234
_ when char.IsBetween(character, 'k', 'v') => (ConsoleKey.F1 + character - 'k', ConsoleModifiers.
Control
),
235
_ when char.IsBetween(character, 'w', 'z') => (ConsoleKey.F1 + character - 'w', ConsoleModifiers.
Control
| ConsoleModifiers.Shift),
236
'@' => (ConsoleKey.F5, ConsoleModifiers.
Control
| ConsoleModifiers.Shift),
237
'[' => (ConsoleKey.F6, ConsoleModifiers.
Control
| ConsoleModifiers.Shift),
238
'<' or '\\' => (ConsoleKey.F7, ConsoleModifiers.
Control
| ConsoleModifiers.Shift), // the Spec says <, PuTTy uses \.
239
']' => (ConsoleKey.F8, ConsoleModifiers.
Control
| ConsoleModifiers.Shift),
240
'^' => (ConsoleKey.F9, ConsoleModifiers.
Control
| ConsoleModifiers.Shift),
241
'_' => (ConsoleKey.F10, ConsoleModifiers.
Control
| ConsoleModifiers.Shift),
242
'`' => (ConsoleKey.F11, ConsoleModifiers.
Control
| ConsoleModifiers.Shift),
243
'{' => (ConsoleKey.F12, ConsoleModifiers.
Control
| ConsoleModifiers.Shift),
289
'5' => ConsoleModifiers.
Control
,
290
'6' => ConsoleModifiers.Shift | ConsoleModifiers.
Control
,
291
'7' => ConsoleModifiers.Alt | ConsoleModifiers.
Control
,
292
'8' => ConsoleModifiers.Shift | ConsoleModifiers.Alt | ConsoleModifiers.
Control
,
303
'^' => ConsoleModifiers.
Control
,
305
'@' => ConsoleModifiers.
Control
| ConsoleModifiers.Shift,
310
=> new(keyChar, key, (modifiers & ConsoleModifiers.Shift) != 0, (modifiers & ConsoleModifiers.Alt) != 0, (modifiers & ConsoleModifiers.
Control
) != 0);