示例#1
0
 private void HandleCharacter(ConsoleKeyInfo c)
 {
     if (c.IsControlActive() && this.consoleKeyCtrlMap.ContainsKey(c.Key))
     {
         this.consoleKeyCtrlMap[c.Key](c);
     }
     else
     {
         this.useSuggestionCache = false;
         this.consoleBuffer.PutChar(c.KeyChar);
     }
 }