javascript - Using keyboard keys as navigation -


I'm working on a blog theme & amp; I have to do keyboard navigation. I have to do something with the ID of the keyboard key, but I have seen that it takes about 3 hours and I still have not found an easy solution which I would like to press & amp;

  • Scroll to the next post
  • K - scroll to the previous post
  • R - opens
  • P - that post A new tab opens with the Permalink URL of

    If someone can help me with it then it will be very helpful. Also, I know that you can set links in the URL to & lt; Article data-reebok-url = "http: // reblogurl" data-permalink-url = "{paramlink}" & gt; On / code> I have no clue how to open a new tab in the browser, when R & amp; The P key is pressed from that data as URL. In addition, J & amp; Kashmir, I like to scroll the browser to the top of the post's top.

    If someone can help me with the whole code, then I appreciate it a ton. I know that this is a lot and I'm probably taking thumbs down for it, but like I said that I have been trying for more than an hour and I just need the help of a specialist.

    There is not a lot more than one hour but there is something here to get you started:

    You can check that what object is created on object I have created a demo so that you can see which key is pressed.

    Demo:

    Goto: This event is the only element that is focused, so you might want to body or Documents are better to type.

    Comments