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

Arrow key events fire twice. #118

Closed calacuda closed 2 months ago

calacuda commented 2 months ago

this behavior seems like a bug because with letter keys the event only fires once; however, when a hotkey uses arrow keys it will trigger twice.

use_hotkeys!(("ArrowUp") => move |_| { do_stuff(); });

calacuda commented 2 months ago

I take it back. I looked through the examples more closely, and I was wrong, this is most likely a bug on my end. Sorry for the trouble.