feat: add stop() method to HotkeyListener protocol and PynputHotkeyListener

This commit is contained in:
2026-04-10 21:05:20 +02:00
parent 1d19a197c7
commit 8b64d66326
4 changed files with 28 additions and 2 deletions
+1
View File
@@ -12,6 +12,7 @@ class HotkeyListener(Protocol):
on_release: AsyncCallback | None
async def listen(self) -> None: ...
def stop(self) -> None: ...
def create_listener(key_name: str = "KEY_F12") -> HotkeyListener: