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

#37 in Hardware support

Download history 21053/week @ 2023-12-15 16715/week @ 2023-12-22 19998/week @ 2023-12-29 18685/week @ 2024-01-05 18657/week @ 2024-01-12 19286/week @ 2024-01-19 19881/week @ 2024-01-26 21510/week @ 2024-02-02 22965/week @ 2024-02-09 17245/week @ 2024-02-16 17333/week @ 2024-02-23 21180/week @ 2024-03-01 20191/week @ 2024-03-08 23673/week @ 2024-03-15 26952/week @ 2024-03-22 22409/week @ 2024-03-29

97,129 downloads per month
Used in 161 crates (17 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.5–1.3MB
~28K SLoC