15 releases

0.7.0 Aug 19, 2023
0.6.2 Nov 17, 2021
0.6.1 Apr 15, 2021
0.5.0 Mar 4, 2020
0.2.0 Jul 31, 2017

#51 in Hardware support

Download history 22173/week @ 2024-07-23 29155/week @ 2024-07-30 32109/week @ 2024-08-06 31976/week @ 2024-08-13 32679/week @ 2024-08-20 36489/week @ 2024-08-27 38598/week @ 2024-09-03 34642/week @ 2024-09-10 31024/week @ 2024-09-17 33599/week @ 2024-09-24 43465/week @ 2024-10-01 46769/week @ 2024-10-08 47473/week @ 2024-10-15 47080/week @ 2024-10-22 53774/week @ 2024-10-29 54495/week @ 2024-11-05

211,575 downloads per month
Used in 260 crates (19 directly)

MIT/Apache

155KB
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

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 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.

Dependencies

~0.4–1.1MB
~25K SLoC