#keyboard #input #event #webdriver

keyboard-types

Contains types to define keyboard related events

11 releases

Uses old Rust 2015

0.5.0 Mar 4, 2020
0.4.4 Nov 15, 2018
0.4.2-servo Oct 13, 2018
0.3.0 Aug 17, 2017
0.1.2 Jul 28, 2017

#67 in Asynchronous

Download history 1134/week @ 2020-05-30 1040/week @ 2020-06-06 1147/week @ 2020-06-13 1011/week @ 2020-06-20 1479/week @ 2020-06-27 1209/week @ 2020-07-04 1543/week @ 2020-07-11 1852/week @ 2020-07-18 1454/week @ 2020-07-25 1127/week @ 2020-08-01 1060/week @ 2020-08-08 1509/week @ 2020-08-15 1276/week @ 2020-08-22 793/week @ 2020-08-29 2290/week @ 2020-09-05 1538/week @ 2020-09-12

3,714 downloads per month
Used in 2 crates (via show-image)

MIT/Apache

130KB
2K 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
~29K SLoC