Keybinds for Nav Bar
What is the simplest way to have a keybind open a link? ( I have a navbar with 4 robust pages linked to it. I want <kbd>1</kbd> to open a section, <kb2>2</kbd> to open a section and so on.
2 Replies
MDN Web Docs
Element: keydown event - Web APIs | MDN
The keydown event is fired when a key is pressed.
Start here
Then return after you have tried something. Showing an example if you can't get it working so others can help see what is going wrong.