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 code #96

Closed friendlymatthew closed 4 months ago

friendlymatthew commented 4 months ago

We should use the code attribute. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code

A later update should be the ability to add both, maybe create mappings between types.

Closes #93

friendlymatthew commented 4 months ago

A note, it's very helpful to turn on debug mode on when you work. This way you can see what you need to type exactly

friendlymatthew commented 4 months ago

@mondeja bump