Esempio n. 1
0
 private void canvas_KeyDown(object sender, KeyEventArgs e)
 {
     if (commands.ContainsKey(e.Key))
     {
         command = commands[e.Key];
         if (command.NumberKeys == 1)
         {
             command.Execute(e.Key);//moet direct worden uitgevoegd bij R-toets
         }
     }
     else
     {
         command.Execute(e.Key);
         ResetCommand();
     }
 }
Esempio n. 2
0
 internal void ResetCommand()
 {
     command = commands[Key.Cancel];
 }