gaucho-labs / leptos-hotkeys

a declarative way of using keyboard shortcuts + callbacks in leptos applications
https://leptos-hotkeys.vercel.app
MIT License
43 stars 8 forks source link

Use `key()` as keyboard identifier, Catch spacebar `str::trim` edgecase #127

Closed rkimoakbioinformatics closed 3 weeks ago

rkimoakbioinformatics commented 3 weeks ago

Changed from .code() to .keys() so that alternative keyboard layouts are correctly detected.

Made str::trim to run conditionally so that the space key is detected.

friendlymatthew commented 2 weeks ago

@all-contributors please add @rkimoakbioinformatics for code

allcontributors[bot] commented 2 weeks ago

@friendlymatthew

I've put up a pull request to add @rkimoakbioinformatics! :tada: