Closed farmaazon closed 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.
convert.py
FromStr
js_sys::KeyboardEvent::key()
Released as v0.5.0
Extended the
convert.py
script, so it implement traitFromStr
for Key. Thanks to that, one can now parse strings from e.g.js_sys::KeyboardEvent::key()
and have the enum value.