Example #1
0
 public Key(KeyAction singleAction)
     : this()
 {
     DefaultAction      = new KeyActionPair(singleAction, singleAction);
     AlternativeActions = Enumerable.Empty <KeyActionPair>();
 }
Example #2
0
 public Key(char character, params char[] alternateCharacters)
     : this()
 {
     DefaultAction      = new KeyActionPair(new CharacterAction(character), new CharacterAction(char.ToUpper(character, CultureInfo.CurrentCulture)));
     AlternativeActions = alternateCharacters.Select(c => new KeyActionPair(new CharacterAction(c), new CharacterAction(char.ToUpper(c, CultureInfo.CurrentCulture)))).ToArray();
 }