/// <summary> /// Handle key up events of the code editor component. /// </summary> /// <param name="s"></param> /// <param name="e"></param> private void HandleKeyUp(object s, KeyEventArgs e) { // only disable editing if Ctrl is pressed DisableEditing = false; switch (e.KeyCode) { case Keys.F: if (e.Control) { // start text search DisableEditing = true; FindText.Clear(); FindText.Focus(); } break; case Keys.R: if (e.Control) { // select all indicator to allow text replacement DisableEditing = true; SelectIndicators(HighlightIndicatorIndex); } break; case Keys.Space: if (e.Control) { // show auto complete menu DisableEditing = true; AutoCShow(CurrentPosition); } break; } }