protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if ((keyData & Keys.Control) == Keys.Control) { switch (keyData) { case (Keys.Control | Keys.N): mainCtrl.NewMap(); return(true); case (Keys.Control | Keys.O): mainCtrl.OpenMap(); return(true); case (Keys.Control | Keys.S): mainCtrl.SaveCurrentMap(); return(true); case (Keys.Control | Keys.Shift | Keys.S): mainCtrl.SaveAll(); return(true); case (Keys.Control | Keys.Z): mainCtrl.Undo(); return(true); case (Keys.Control | Keys.Y): mainCtrl.Redo(); return(true); case (Keys.Control | Keys.C): mainCtrl.Copy(); return(true); case (Keys.Control | Keys.V): mainCtrl.Paste(); return(true); case (Keys.Control | Keys.X): mainCtrl.Cut(); return(true); case (Keys.Control | Keys.B): mainCtrl.CurrentMapCtrl.ToggleBold(); return(true); case (Keys.Control | Keys.I): mainCtrl.CurrentMapCtrl.ToggleItalic(); return(true); case (Keys.Control | Keys.D): mainCtrl.CurrentMapCtrl.ChangeFont(); return(true); } } else if ((keyData & Keys.Alt) == Keys.Alt) { switch (keyData) { case (Keys.Alt | Keys.I): mainCtrl.CurrentMapCtrl.AppendIconFromIconSelectorExt(); return(true); } } return(base.ProcessCmdKey(ref msg, keyData)); }
void newToolStripMenuItem_Click(object sender, EventArgs e) { mainCtrl.NewMap(); }