#keyboard #input #event #webdriver

keyboard-types

Contains types to define keyboard related events

13 releases

Uses old Rust 2015

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

#21 in Hardware support

Download history 824/week @ 2020-12-25 2109/week @ 2021-01-01 2455/week @ 2021-01-08 1102/week @ 2021-01-15 1406/week @ 2021-01-22 1947/week @ 2021-01-29 1934/week @ 2021-02-05 2077/week @ 2021-02-12 1921/week @ 2021-02-19 1880/week @ 2021-02-26 1821/week @ 2021-03-05 2559/week @ 2021-03-12 1794/week @ 2021-03-19 2856/week @ 2021-03-26 2764/week @ 2021-04-02 1462/week @ 2021-04-09

8,519 downloads per month
Used in 13 crates (2 directly)

MIT/Apache

140KB
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.5–1.2MB
~27K SLoC