Jump to content

Surfing a gallery by cursor keys


Recommended Posts

I like to use keys instead of the mouse, whenever possible.

Is there a way to walk through a gallery (eg. call the next or previous page) by cursor keys left or right?

Link to comment
Share on other sites

Sure. You just need to register some event handler using vanilla Javascript or jQuery shipping with Processwire. Easiest way would be to simulate a mouse click on the left right HTML elements of your existing gallery when the arrow keys are pressed. Some inspiration can be found here for example.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...