示例#1
0
 public override void SendKey(Keys KeyCode, bool ShiftPressed)
 {
     if (KeyCode == Keys.Back && Content.Length > 0)
     {
         Content = Content.Substring(0, Content.Length - 1);
     }
     else
     {
         char letter = KeyMapping.GetChar(KeyCode, ShiftPressed);
         if (letter != '\0')
         {
             Content += letter;
         }
     }
 }