private void txtComment_KeyDown(object sender, KeyEventArgs e) { if (((e.KeyCode == Keys.Enter) && (e.Modifiers != Keys.None)) || (e.KeyCode == Keys.Escape)) { shape.HideEditor( ); } }
private void txtComment_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Enter && e.Modifiers != Keys.None || e.KeyCode == Keys.Escape) { shape.HideEditor(); } }