private void GraphSpectrum_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Escape: _documentContainer.FocusDocument(); break; } }
private void FoldChangeForm_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Escape: _documentContainer.FocusDocument(); e.Handled = true; break; } }
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { switch (keyData) { case Keys.Escape: _documentContainer.FocusDocument(); return true; case Keys.Left: ChangeScan(-1); return true; case Keys.Right: ChangeScan(1); return true; } return base.ProcessCmdKey(ref msg, keyData); }
private void GraphSummary_KeyDown(object sender, KeyEventArgs e) { if (GraphPanes.First().HandleKeyDownEvent(sender, e)) { return; } if (_controller.HandleKeyDownEvent(sender, e)) { return; } switch (e.KeyCode) { case Keys.Escape: _documentContainer.FocusDocument(); break; } }