Exemplo n.º 1
0
 public void SendTypeChar(char ch)
 {
     SendTypeChar(
         ch,
         _commandHandler.ExecuteCommand,
         () => EditorOperations.InsertText(ch.ToString())
         );
 }
Exemplo n.º 2
0
            public void InsertCode(string text)
            {
                if (_window._stdInputStart != null)
                {
                    return;
                }

                if (State == State.ExecutingInput)
                {
                    AppendUncommittedInput(text);
                }
                else
                {
                    if (!_window._textView.Selection.IsEmpty)
                    {
                        _window.CutOrDeleteSelection(isCut: false);
                    }

                    EditorOperations.InsertText(text);
                }
            }
Exemplo n.º 3
0
 internal void SendTab()
 {
     base.SendTab(_commandHandler.ExecuteCommand, () => EditorOperations.InsertText("    "));
 }