#keyboard #input #event #webdriver

keyboard-types

Contains types to define keyboard related events

14 releases

Uses old Rust 2015

0.6.2 Nov 17, 2021
0.6.1 Apr 15, 2021
0.5.0 Mar 4, 2020
0.4.4 Nov 15, 2018
0.1.2 Jul 28, 2017

#167 in Hardware support

Download history 6797/week @ 2023-02-13 5885/week @ 2023-02-20 6384/week @ 2023-02-27 7141/week @ 2023-03-06 5938/week @ 2023-03-13 8520/week @ 2023-03-20 10062/week @ 2023-03-27 8109/week @ 2023-04-03 8507/week @ 2023-04-10 10771/week @ 2023-04-17 11066/week @ 2023-04-24 10881/week @ 2023-05-01 9770/week @ 2023-05-08 12684/week @ 2023-05-15 12111/week @ 2023-05-22 13254/week @ 2023-05-29

49,034 downloads per month
Used in 83 crates (14 directly)

MIT/Apache

150KB
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.6–1.3MB
~31K SLoC