From d808fda058ece5310022ab7ee34aa3240149b760 Mon Sep 17 00:00:00 2001 From: Harold De Armas Date: Tue, 3 Aug 2021 12:45:49 -0700 Subject: [PATCH] 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. --- Macropad_Hotkeys/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Macropad_Hotkeys/code.py b/Macropad_Hotkeys/code.py index 4d5e2622b..f15b9cb2b 100755 --- a/Macropad_Hotkeys/code.py +++ b/Macropad_Hotkeys/code.py @@ -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: