3
Situation
- I have a navbar on my site, and in it I have several dropdown menus / megamenus.
- I need that when clicked on this dropdown, the user has the option to "scroll" the page up and down with the arrow keys on the keyboard.
- With the mouse scroll this already works
- But not the keyboard... even if you set the focus (using the .Focus() of jquery) on some element that is outside the navbar.
Jsfiddle is here, resize the screen if the dropdown does not appear.
Then try pressing up and down on the keyboard, in this case it won’t work (the screen won’t go down or up)... only works with the mouse scroll, and I would need it to work with the keyboard as well
Thank you for the answer, but this would not be quite what I am needing. The problem itself is the following... Try to open the Jsfiddle, and then click the dropdown menu, with it open, try to press up and down on the keyboard, in this case it will not work (the screen will not go down or up)... only works with the mouse scroll, and I would need this to work with the keyboard as well.
– Daniel Kuroski