Crates.io | keyboard-types |
lib.rs | keyboard-types |
version | 0.7.0 |
source | src |
created_at | 2017-07-27 09:10:05.372303 |
updated_at | 2023-08-19 16:30:45.669913 |
description | Contains types to define keyboard related events. |
homepage | |
repository | https://github.com/pyfisch/keyboard-types |
max_upload_size | |
id | 25271 |
size | 165,495 |
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
The file src/key.rs
and src/code.rs
are derived from the two
W3C working drafts
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.