From 78c941a8c6bca042131a82e44922ec7f1852bfb2 Mon Sep 17 00:00:00 2001 From: BoppreH Date: Mon, 23 Mar 2020 22:41:36 +0100 Subject: [PATCH] Fix docstring typos --- keyboard/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboard/__init__.py b/keyboard/__init__.py index 80bc34be..401acd57 100644 --- a/keyboard/__init__.py +++ b/keyboard/__init__.py @@ -486,7 +486,7 @@ def hook_key(key, callback, suppress=False): `unhook_key(handler)`. Note: this function shares state with hotkeys, so `clear_all_hotkeys` - affects it aswell. + affects it as well. """ _listener.start_if_necessary() store = _listener.blocking_keys if suppress else _listener.nonblocking_keys @@ -744,7 +744,7 @@ def remove_(): def remove_hotkey(hotkey_or_callback): """ - Removes a previously hooked hotkey. Must be called wtih the value returned + Removes a previously hooked hotkey. Must be called with the value returned by `add_hotkey`. """ _hotkeys[hotkey_or_callback]() @@ -1089,7 +1089,7 @@ def add_word_listener(word, callback, triggers=['space'], match_suffix=False, ti `remove_word_listener(word)` or `remove_word_listener(handler)`. Note: all actions are performed on key down. Key up events are ignored. - Note: word mathes are **case sensitive**. + Note: word matches are **case sensitive**. """ state = _State() state.current = ''