Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyfisch/keyboard-types
Types to define keyboard related events.
https://github.com/pyfisch/keyboard-types
Last synced: about 1 month ago
JSON representation
Types to define keyboard related events.
- Host: GitHub
- URL: https://github.com/pyfisch/keyboard-types
- Owner: pyfisch
- License: apache-2.0
- Created: 2017-07-27T08:37:42.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T11:19:40.000Z (11 months ago)
- Last Synced: 2024-11-13T05:34:34.145Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 67.4 KB
- Stars: 53
- Watchers: 4
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
Keyboard Types
==============[![Build Status](https://github.com/pyfisch/keyboard-types/actions/workflows/ci.yml/badge.svg)](https://github.com/pyfisch/keyboard-types/actions/workflows/ci.yml)
[![Crates.io](https://img.shields.io/crates/v/keyboard-types.svg)](https://crates.io/crates/keyboard-types)
[![Documentation](https://docs.rs/keyboard-types/badge.svg)](https://docs.rs/keyboard-types)Contains types to define keyboard related events.
The naming and conventions follow the UI Events specification
but this crate should be useful for anyone implementing keyboard
input in a cross-platform way.See also: [UI Events Specification](https://w3c.github.io/uievents/)
Updating Generated Code
-----------------------The file `src/key.rs` and `src/code.rs` are derived from the two
W3C working drafts* [UI Events KeyboardEvent key Values](https://w3c.github.io/uievents-key/) and
* [UI Events KeyboardEvent code Values](https://w3c.github.io/uievents-code/)in the most recent version. A Python 3 script (requires `requests` library)
downloads the files and updates the tables.Manually check if any modifier keys were changed and update the
`src/modifiers.rs` file if necessary.