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

Handle spacebar renaming edgecase #129

Closed friendlymatthew closed 3 weeks ago

friendlymatthew commented 3 weeks ago

Spacebar's key() value is " ". With #127 merged, we caught an edge case when we str::trim key values, we lose the spacebar key. This commit explicitly handles this case with the official namespace as spacebar.

For user experience, this commit also filtermaps space and " ".

mondeja commented 3 weeks ago

Sorry, I currently don't have so much time to keep an eye on leptos-hotkeys. I'll be back on board later, captain!