Skip to content

Commit d808fda

Browse files
authored
Release keys should work on positive integers
https://github.com/adafruit/Adafruit_CircuitPython_HID/blob/d5b6ea50f49ef4575a1fbe52259c2dff44bcab2b/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.
1 parent 6a5a44c commit d808fda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Macropad_Hotkeys/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def switch(self):
136136
if item >= 0:
137137
MACROPAD.keyboard.press(item)
138138
else:
139-
MACROPAD.keyboard.release(item)
139+
MACROPAD.keyboard.release(-item)
140140
else:
141141
MACROPAD.keyboard_layout.write(item)
142142
else:

0 commit comments

Comments
 (0)