pyfisch / keyboard-types

Types to define keyboard related events.
Apache License 2.0
54 stars 9 forks source link

Add FromStr trait for Key #4

Closed farmaazon closed 4 years ago

farmaazon commented 4 years ago

Extended the convert.py script, so it implement trait FromStr for Key. Thanks to that, one can now parse strings from e.g. js_sys::KeyboardEvent::key() and have the enum value.

pyfisch commented 4 years ago

Released as v0.5.0