Skip to content

Commit f5e70e0

Browse files
authored
Merge pull request #27 from dhalbert/gui-alt-key-aliases
Add familiar Mac and Windows names for GUI and ALT keys.
2 parents 99c71a6 + a4460af commit f5e70e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

adafruit_hid/keycode.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,16 @@ class Keycode:
284284
"""Alt modifier left of the spacebar"""
285285
ALT = LEFT_ALT
286286
"""Alias for LEFT_ALT; Alt is also known as Option (Mac)"""
287+
OPTION = ALT
288+
"""Labeled as Option on some Mac keyboards"""
287289
LEFT_GUI = 0xE3
288290
"""GUI modifier left of the spacebar"""
289291
GUI = LEFT_GUI
290292
"""Alias for LEFT_GUI; GUI is also known as the Windows key, Command (Mac), or Meta"""
293+
WINDOWS = GUI
294+
"""Labeled with a Windows logo on Windows keyboards"""
295+
COMMAND = GUI
296+
"""Labeled as Command on Mac keyboards, with a clover glyph"""
291297
RIGHT_CONTROL = 0xE4
292298
"""Control modifier right of the spacebar"""
293299
RIGHT_SHIFT = 0xE5

0 commit comments

Comments
 (0)