private void txtNewValue_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Enter: AddNewValue(); e.Handled = true; break; case Keys.Escape: needValidation = false; shape.HideEditor(); e.Handled = true; break; case Keys.Tab: txtReturnType.Focus(); e.Handled = true; break; } }
protected override void HideEditor() { NeedValidation = false; shape.HideEditor(); }