private bool ProcessInput(KeyboardEventType eventType, Keys key) { _inputBuffer.Enqueue(new KeyboardEventArgs(eventType, key)); if (_textInputDelegate != null) { string chars = TypedInputUtil.VkCodeToString((uint)key, eventType == KeyboardEventType.KeyDown); _textInputDelegate?.BeginInvoke(chars, EndTextInputAsyncInvoke, null); return(ShouldBlockKeyEvent(key)); } // TODO: Implement blocking based on the key that is pressed (for example: Key binding blocking the last pressed key) return(false); }
private bool ProcessInput(KeyboardEventType eventType, Keys key) { _inputBuffer.Enqueue(new KeyboardEventArgs(eventType, key)); if (_textInputDelegate != null) { string chars = TypedInputUtil.VkCodeToString((uint)key, eventType == KeyboardEventType.KeyDown); _textInputDelegate?.BeginInvoke(chars, EndTextInputAsyncInvoke, null); return(true /* key != Keys.LeftShift && key != Keys.RightShift */); // "SHIFT" support temporarily disabled } // TODO: Implement blocking based on the key that is pressed (for example: Key binding blocking the last pressed key) return(false); }