Skip to content

Add Keycodes COMMAND, OPTION, and WINDOWS

Compare
Choose a tag to compare
@dhalbert dhalbert released this 01 Nov 17:47
f5e70e0

Add Keycode names that correspond to Mac and Windows keyboard labels, for more obvious use without having to refer to the documentation.

  • Add Keycode.WINDOWS and Keycode.COMMAND as aliases for Keycode.GUI.
  • Add Keycode.OPTION as alias for Keycode.ALT.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip install adafruit-circuitpython-hid.

Read the docs for info on how to use it.