private void GenerateKeystrokes(string keys)
 {
     HotKeyManager.Enable = false;
     _textArea.Focus();
     SendKeys.Send(keys);
     HotKeyManager.Enable = true;
 }
Exemplo n.º 2
0
 private void GenerateKeystrokes(string keys)
 {
     HotKeyManager.Enable = false;
     scintilla1.Focus();
     SendKeys.Send(keys);
     HotKeyManager.Enable = true;
 }
Exemplo n.º 3
0
Arquivo: GoTo.cs Projeto: cybort/iBAT
        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();
        }
Exemplo n.º 4
0
        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();
            }
        }
Exemplo n.º 5
0
        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();
            }
        }