60 references to ConsoleModifiers
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
133
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
ConsoleModifiers
))]
netstandard (1)
netstandard.cs (1)
437
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
ConsoleModifiers
))]
System.Console (58)
System\ConsoleKeyInfo.cs (5)
12
private readonly
ConsoleModifiers
_mods;
29
_mods |=
ConsoleModifiers
.Shift;
31
_mods |=
ConsoleModifiers
.Alt;
33
_mods |=
ConsoleModifiers
.Control;
46
public
ConsoleModifiers
Modifiers
System\IO\KeyParser.cs (53)
36
return new ConsoleKeyInfo(parsed.KeyChar, parsed.Key, (parsed.Modifiers &
ConsoleModifiers
.Shift) != 0, alt: true, (parsed.Modifiers &
ConsoleModifiers
.Control) != 0);
67
ConsoleModifiers
modifiers =
ConsoleModifiers
.None;
178
static (ConsoleKey key,
ConsoleModifiers
modifiers) MapKeyIdOXterm(char character, bool isRxvt)
182
'a' => (ConsoleKey.UpArrow,
ConsoleModifiers
.Shift), // rxvt
184
'b' => (ConsoleKey.DownArrow,
ConsoleModifiers
.Shift), // used by rxvt
186
'c' => (ConsoleKey.RightArrow,
ConsoleModifiers
.Shift), // used by rxvt
188
'd' => (ConsoleKey.LeftArrow,
ConsoleModifiers
.Shift), // used by rxvt
220
static (ConsoleKey key,
ConsoleModifiers
modifiers) MapSCO(char character)
232
_ when char.IsBetween(character, 'Y', 'Z') => (ConsoleKey.F1 + character - 'Y',
ConsoleModifiers
.Shift),
233
_ when char.IsBetween(character, 'a', 'j') => (ConsoleKey.F3 + character - 'a',
ConsoleModifiers
.Shift),
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),
283
static
ConsoleModifiers
MapXtermModifiers(char modifier)
286
'2' =>
ConsoleModifiers
.Shift,
287
'3' =>
ConsoleModifiers
.Alt,
288
'4' =>
ConsoleModifiers
.Shift |
ConsoleModifiers
.Alt,
289
'5' =>
ConsoleModifiers
.Control,
290
'6' =>
ConsoleModifiers
.Shift |
ConsoleModifiers
.Control,
291
'7' =>
ConsoleModifiers
.Alt |
ConsoleModifiers
.Control,
292
'8' =>
ConsoleModifiers
.Shift |
ConsoleModifiers
.Alt |
ConsoleModifiers
.Control,
300
static
ConsoleModifiers
MapRxvtModifiers(char modifier)
303
'^' =>
ConsoleModifiers
.Control,
304
'$' =>
ConsoleModifiers
.Shift,
305
'@' =>
ConsoleModifiers
.Control |
ConsoleModifiers
.Shift,
309
static ConsoleKeyInfo Create(char keyChar, ConsoleKey key,
ConsoleModifiers
modifiers)
310
=> new(keyChar, key, (modifiers &
ConsoleModifiers
.Shift) != 0, (modifiers &
ConsoleModifiers
.Alt) != 0, (modifiers &
ConsoleModifiers
.Control) != 0);