Beispiel #1
0
 /// <summary>Paste the clipboard into the input buffer</summary>
 public new void Paste()
 {
     if (Clipboard.ContainsText())
     {
         Buffer.AddInput(Clipboard.GetText());
     }
 }
Beispiel #2
0
        /// <summary>Adds text to the input buffer</summary>
        protected virtual void AddToBuffer(EKeyCodes vk)
        {
            // If input triggers auto scroll
            if (ScrollToBottomOnInput)
            {
                AutoScrollToBottom = true;
                ScrollToBottom();
            }

            // Try to add the raw key code first. If not handled,
            // try to convert it to a character and add it again.
            if (!Buffer.AddInput(vk))
            {
                if (Win32.CharFromVKey(vk, out var ch))
                {
                    Buffer.AddInput(ch);
                }
            }
        }