override public void Focus() { textBox.Focus(); Controller lastController = Nest.MainForm.LastFrame != null ? Nest.MainForm.LastFrame.Controller : null; textBox.Text = lastController == null || lastController.Lines.LastSelection.Empty ? data.oldText : lastController.Lines.GetText(lastController.Lines.LastSelection.Left, lastController.Lines.LastSelection.Count); textBox.Controller.SelectAllToEnd(); replaceTextBox.Text = data.oldReplaceText; replaceTextBox.Controller.SelectAllToEnd(); }
override public void Focus() { textBox.Focus(); Frame lastFrame = Nest.MainForm.LastFrame; Controller lastController = lastFrame != null ? lastFrame.Controller : null; if (lastController != null) { textBox.Text = lastController.Lines.LastSelection.Empty ? data.oldText : lastController.Lines.GetText(lastController.Lines.LastSelection.Left, lastController.Lines.LastSelection.Count); textBox.Controller.SelectAllToEnd(); } }
override public void Focus() { textBox.Focus(); startViMode = MulticaretTextBox.initMacrosExecutor != null && MulticaretTextBox.initMacrosExecutor.viMode != ViMode.Insert; textBox.Text = text; textBox.Controller.ClearMinorSelections(); for (int i = 0; i < textBox.Controller.Lines.LinesCount; i++) { Line line = textBox.Controller.Lines[i]; if (i == 0) { textBox.Controller.PutCursor(new Place(0, i), false); } else { textBox.Controller.PutNewCursor(new Place(0, i)); } int right = line.NormalCount; if (isDirectory != null && i < isDirectory.Count && !isDirectory[i]) { for (int j = right; j-- > 1;) { if (line.chars[j].c == '.') { right = j; break; } } } if (!startViMode) { textBox.Controller.PutCursor(new Place(right, i), true); } } textBox.Invalidate(); Nest.size = tabBar.Height + textBox.CharHeight * ( !string.IsNullOrEmpty(text) && textBox.Controller != null ? textBox.GetScrollSizeY() : 1 ) + 4; SetNeedResize(); }
private bool DoNextField(Controller controller) { if (controller == textBox.Controller && variantsTextBox.Controller.Lines.charsCount != 0) { variantsTextBox.Focus(); } else { textBox.Focus(); } return(true); }
private bool DoNextField(Controller controller) { if (controller == textBox.Controller) { replaceTextBox.Focus(); } else { textBox.Focus(); } return(true); }
override public void Focus() { textBox.Focus(); startViMode = MulticaretTextBox.initMacrosExecutor != null && MulticaretTextBox.initMacrosExecutor.viMode != ViMode.Insert; Frame lastFrame = Nest.MainForm.LastFrame; Controller lastController = lastFrame != null ? lastFrame.Controller : null; if (lastController != null) { if (text != null) { textBox.Text = text; textBox.Controller.DocumentEnd(false); } else { textBox.Text = data.oldText; textBox.Controller.SelectAllToEnd(); } } }
override public void Focus() { textBox.Focus(); }
private bool DoSwitchToTempFilter(Controller controller) { filterTextBox.Visible = true; filterTextBox.Focus(); return(true); }
private void OnTabBarMouseDown(object sender, EventArgs e) { textBox.Focus(); }