Skip to content

Commit

Permalink
Add familiar Mac and Windows names for GUI and ALT keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed Nov 1, 2018
1 parent 99c71a6 commit a4460af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adafruit_hid/keycode.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,16 @@ class Keycode:
"""Alt modifier left of the spacebar"""
ALT = LEFT_ALT
"""Alias for LEFT_ALT; Alt is also known as Option (Mac)"""
OPTION = ALT
"""Labeled as Option on some Mac keyboards"""
LEFT_GUI = 0xE3
"""GUI modifier left of the spacebar"""
GUI = LEFT_GUI
"""Alias for LEFT_GUI; GUI is also known as the Windows key, Command (Mac), or Meta"""
WINDOWS = GUI
"""Labeled with a Windows logo on Windows keyboards"""
COMMAND = GUI
"""Labeled as Command on Mac keyboards, with a clover glyph"""
RIGHT_CONTROL = 0xE4
"""Control modifier right of the spacebar"""
RIGHT_SHIFT = 0xE5
Expand Down

0 comments on commit a4460af

Please sign in to comment.