Skip to content

Commit

Permalink
Merge pull request #27 from dhalbert/gui-alt-key-aliases
Browse files Browse the repository at this point in the history
Add familiar Mac and Windows names for GUI and ALT keys.
  • Loading branch information
kattni authored Nov 1, 2018
2 parents 99c71a6 + a4460af commit f5e70e0
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 f5e70e0

Please sign in to comment.