Skip to content

Commit

Permalink
as _winkeyboard.py states in line 438, init should be called in __ini…
Browse files Browse the repository at this point in the history
…t__.py. This fixes keyboard.send(int) not working
  • Loading branch information
Henrique Lino authored and boppreh committed May 28, 2022
1 parent cbace63 commit 73e1597
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keyboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def wait(self):
import platform as _platform
if _platform.system() == 'Windows':
from. import _winkeyboard as _os_keyboard
_os_keyboard.init()
_time.sleep(0.1)
elif _platform.system() == 'Linux':
from. import _nixkeyboard as _os_keyboard
_os_keyboard.init()
Expand Down

0 comments on commit 73e1597

Please sign in to comment.