public void SetUpSteps() { ManualTextInputContainer textInputContainer = null; AddStep("add manual text input container", () => { Child = textInputContainer = new ManualTextInputContainer(); textInput = textInputContainer.TextInput; }); AddStep("add textbox", () => textInputContainer.Child = textBox = new EventQueuesTextBox { CommitOnFocusLost = true, ReleaseFocusOnCommit = false, Size = new Vector2(200, 40), Text = default_text, }); AddStep("focus textbox", () => { InputManager.MoveMouseTo(textBox); InputManager.Click(MouseButton.Left); }); AddStep("move caret to end", () => InputManager.Keys(PlatformAction.MoveForwardLine)); AddStep("dequeue caret event", () => textBox.CaretMovedQueue.Dequeue()); }
public ManualTextInputContainer() { TextInput = new ManualTextInput(); }
public ManualTextInputContainer() { RelativeSizeAxes = Axes.Both; TextInput = new ManualTextInput(); }