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:
parent
6a5a44cf89
commit
d808fda058
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ while True:
|
||||||
if item >= 0:
|
if item >= 0:
|
||||||
MACROPAD.keyboard.press(item)
|
MACROPAD.keyboard.press(item)
|
||||||
else:
|
else:
|
||||||
MACROPAD.keyboard.release(item)
|
MACROPAD.keyboard.release(-item)
|
||||||
else:
|
else:
|
||||||
MACROPAD.keyboard_layout.write(item)
|
MACROPAD.keyboard_layout.write(item)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue