private void GenerateKeystrokes(string keys) { HotKeyManager.Enable = false; _textArea.Focus(); SendKeys.Send(keys); HotKeyManager.Enable = true; }
private void GenerateKeystrokes(string keys) { HotKeyManager.Enable = false; scintilla1.Focus(); SendKeys.Send(keys); HotKeyManager.Enable = true; }
public void ShowGoToDialog() { GoToDialog gd = new GoToDialog(); gd.CurrentLineNumber = Scintilla.Lines.Current.Number; gd.MaximumLineNumber = Scintilla.Lines.Count; gd.Scintilla = Scintilla; if (gd.ShowDialog() == DialogResult.OK) { Line(gd.GotoLineNumber); } Scintilla.Focus(); }
protected override void OnVisibleChanged(EventArgs e) { base.OnVisibleChanged(e); txtSnippet.Text = string.Empty; SetPosition(); if (Visible) { txtSnippet.Focus(); txtSnippet.AutoComplete.Show(0, _snippetList); } else { Scintilla.Focus(); } }
protected override void OnVisibleChanged(EventArgs e) { base.OnVisibleChanged(e); txtFind.Text = string.Empty; txtFind.BackColor = SystemColors.Window; moveFormAwayFromSelection(); if (Visible) { txtFind.Focus(); } else if (Scintilla != null) { Scintilla.Focus(); } }