Add missing keycode

This commit is contained in:
xs5871
2023-04-01 00:08:41 +00:00
committed by xs5871
parent d15569611e
commit b84cd0bdab
3 changed files with 9 additions and 0 deletions

View File

@@ -137,3 +137,10 @@ def ble_disconnect(key, keyboard, *args, **kwargs):
keyboard._hid_helper.clear_bonds()
return keyboard
def any_pressed(key, keyboard, *args, **kwargs):
from random import randint
key.code = randint(4, 56)
default_pressed(key, keyboard, *args, **kwargs)