16 releases

0.8.0 Apr 29, 2025
0.7.0 Aug 19, 2023
0.6.2 Nov 17, 2021
0.6.1 Apr 15, 2021
0.2.0 Jul 31, 2017

#21 in Hardware support

Download history 79788/week @ 2025-01-28 79833/week @ 2025-02-04 88354/week @ 2025-02-11 87365/week @ 2025-02-18 90513/week @ 2025-02-25 86553/week @ 2025-03-04 89828/week @ 2025-03-11 95058/week @ 2025-03-18 94586/week @ 2025-03-25 98489/week @ 2025-04-01 98672/week @ 2025-04-08 79609/week @ 2025-04-15 89931/week @ 2025-04-22 86914/week @ 2025-04-29 93745/week @ 2025-05-06 81588/week @ 2025-05-13

365,289 downloads per month
Used in 394 crates (26 directly)

MIT/Apache

160KB
2.5K SLoC

Keyboard Types

Build Status Crates.io Documentation

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, and in particular the section on keyboard events.

Minimum Support Rust Version (MSRV)

The minimum supported Rust version is 1.61, or 1.81 if the "std" Cargo feature is disabled. This is not defined by policy, and may change at any time in a patch release.

Updating Generated Code

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 the requests and beautifulsoup4 libraries) downloads the files and updates the tables.

Manually check if any modifier keys were changed and update the src/modifiers.rs file if necessary.

Dependencies

~71–340KB