Exemple #1
0
 public KeyPressPattern(char character)
 {
     type      = KeyPressPatternType.Character;
     Modifiers = default;
     Key       = default;
     Character = character;
 }
Exemple #2
0
 public KeyPressPattern(ConsoleModifiers modifiers, ConsoleKey key)
 {
     type      = KeyPressPatternType.ConsoleKey;
     Modifiers = modifiers;
     Key       = key;
     Character = MapToCharacter(key);
 }