mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
server-side paste-as-keys
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user