From 43afd9acb3a7f2c94a3515f580ec3afcee720dc2 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Fri, 22 May 2020 21:07:54 +0300 Subject: server-side paste-as-keys --- kvmd/plugins/hid/otg/keyboard.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kvmd/plugins/hid/otg/keyboard.py') diff --git a/kvmd/plugins/hid/otg/keyboard.py b/kvmd/plugins/hid/otg/keyboard.py index fb964d8a..cb83232b 100644 --- a/kvmd/plugins/hid/otg/keyboard.py +++ b/kvmd/plugins/hid/otg/keyboard.py @@ -81,9 +81,11 @@ class KeyboardProcess(BaseDeviceProcess): self._ensure_write(b"\x00" * 8, close=True) # Release all keys and modifiers def send_clear_event(self) -> None: + self._clear_queue() self._queue_event(_ClearEvent()) def send_reset_event(self) -> None: + self._clear_queue() self._queue_event(_ResetEvent()) def send_key_event(self, key: str, state: bool) -> None: -- cgit v1.2.3