I want to built an app that the user will navigate using the arrows (to move from link to link) and then press Enter to enter another page.
I can use ab and Shift+Tab to go between links and then press Enter to go to that link, but I need to use the arrows for moving around. And what’s more, I want to have Electron understand somehow that a link is “above” or “left” to another so that pressing Left will go to the left link, and pressing Up will go to the above link. I’m trying to create a UI that resembles MS-DOS .
I can use the Mousetrap library to bind whatever keys I want:
Is there a way to do this? I can’t find a resource.