/// <include file="documentation.xml" path="/UI/Common/OnKeyDown/*"/> protected override void OnKeyDown(KeyEventArgs e) { base.OnKeyDown(e); if(!e.Handled && PGPUI.IsCloseKey(e)) { Close(); e.Handled = true; } }
/// <include file="documentation.xml" path="/UI/Common/OnKeyDown/*"/> protected override void OnKeyDown(KeyEventArgs e) { base.OnKeyDown(e); if(!e.Handled && PGPUI.IsCloseKey(e)) // let the form be closed by pressing escape { Close(); e.Handled = true; } }