From a4460aff91368f197149ab01bd22a99948c9496e Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Thu, 1 Nov 2018 13:27:44 -0400 Subject: [PATCH] Add familiar Mac and Windows names for GUI and ALT keys. --- adafruit_hid/keycode.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/adafruit_hid/keycode.py b/adafruit_hid/keycode.py index 90ed3c3..ab639b8 100644 --- a/adafruit_hid/keycode.py +++ b/adafruit_hid/keycode.py @@ -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