/// <summary> /// Key Up /// </summary> public void OnKeyUp(KeyEventArgs e) { if (_currentCmd != null) { Command.EventResult eRet = _currentCmd.OnKeyUp(e); } }
/// <summary> /// Key Down /// </summary> public void OnKeyDown(KeyEventArgs e) { if (_currentCmd != null) { Command.EventResult eRet = _currentCmd.OnKeyDown(e); if (eRet.status == Command.EventResultStatus.Unhandled) { if (e.KeyCode == Keys.Escape) { this.CancelCurrentCommand(); } } } }