/// <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); } } }
public static extern short GetKeyState(EKeyCodes vKey);