コード例 #1
0
 /// <summary>
 /// Processes command keys that are specific for this panel
 /// </summary>
 /// <param name="msg"></param>
 /// <param name="keyData"></param>
 /// <returns></returns>
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (keyData == (Keys.Control | Keys.C))
     {
         // Copying all properties in the selected category to the clipboard
         CopyProperties();
         return(true);
     }
     else if (keyData == (Keys.Control | Keys.V))
     {
         // The active component is the view.
         EditorManager.ActiveComponent.OnPaste();
         return(true);
     }
     else if (keyData == (Keys.Control | Keys.Z))
     {
         EditorManager.DoUndo();
         return(true);
     }
     else if (keyData == (Keys.Control | Keys.Y))
     {
         EditorManager.DoRedo();
         return(true);
     }
     return(base.ProcessCmdKey(ref msg, keyData));
 }