private void listBox_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.N) { AddTrapConnection(); } else if (e.Control && e.KeyCode == Keys.Z) { if (_owner.CanUndo) { _owner.Undo(); } } else if (e.Control && e.KeyCode == Keys.R) { if (_owner.CanRedo) { _owner.Redo(); } } else if (e.KeyCode == Keys.Delete) { RemoveCurrentMonster(); } }
public void Undo() { _editor.Undo(); Focus(); }