KeyCodes

0.1.1

AppKit Carbon key codes to UIKey-compatible enums
ChimeHQ/KeyCodes

What's New

v0.1.1

2022-08-10T11:07:23Z
  • new deviceIndependentOnly API

Github CI

KeyCodes

Versions of UIKey, UIKeyboardHIDUsage, and UIKeyModifierFlags that work with AppKit's NSEvent. No need for Carbon.HIToolbox. Aside from being a nicer API to work with, these versions should make it possible to more easily write source-compatible AppKit/UIKit keyboard handling code. Yes, this is basically a gigantic switch statement.

These structures are particularly helpful for writing tests. Constructing NSEvent instances by hand is a pain.

Integration

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/ChimeHQ/KeyCodes")
]

Suggestions or Feedback

We'd love to hear from you! Get in touch via twitter, an issue, or a pull request.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Mar 12 2023 23:20:49 GMT-0500 (GMT-05:00)