Skip to content

Commit d0bd10a

Browse files
committed
reduce comment
1 parent a5f6fa7 commit d0bd10a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Macropad_Hotkeys/code.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ def switch(self):
5050

5151
# INITIALIZATION -----------------------
5252
if True:
53-
# The 'if True:' and indentation is a method to segment the code into logical blocks.
54-
# Although not supported by MU, it also enables "code folding" by most editing programs
53+
# The 'if True:' here is simply to help visually separate the code into logical sections.
5554
macropad = MacroPad()
5655
macropad.display.auto_refresh = False
5756
macropad.pixels.auto_write = False
@@ -153,7 +152,7 @@ def switch(self):
153152
else:
154153
macropad.keyboard_layout.write(item)
155154
else:
156-
# Release any still-pressed modifier keys
155+
# Release any still-pressed keys
157156
for item in sequence:
158157
if isinstance(item, int) and item >= 0:
159158
macropad.keyboard.release(item)

0 commit comments

Comments
 (0)