Exemplo n.º 1
0
 /// <summary>
 ///     Method triggered when a key is pressed inside the GLComponent
 /// </summary>
 private void BlockControl_KeyDown(object sender, KeyEventArgs e)
 {
     // Branch off by key
     switch (e.KeyCode)
     {
     case Keys.Delete:     // Delete selected object
         if (_currentSelect != null && _currentSelect.CanDelete)
         {
             _currentSelect.Delete();
         }
         break;
     }
 }