Release keys should work on positive integers

d5b6ea50f4/adafruit_hid/keyboard.py (L144)

In hid, if you press the positive numbers, it won't actually remove them if you pass in negative numbers.
This commit is contained in:
Harold De Armas 2021-08-03 12:45:49 -07:00 committed by GitHub
parent 6a5a44cf89
commit d808fda058
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@ while True:
if item >= 0:
MACROPAD.keyboard.press(item)
else:
MACROPAD.keyboard.release(item)
MACROPAD.keyboard.release(-item)
else:
MACROPAD.keyboard_layout.write(item)
else: