Jump to content

How to change pictures with keyboard arrows?


shadoks
 Share

Recommended Posts

What’s a function arrow keyboard key?

the W3 example already has something that could be function arrow keyboard keys.  

Link to comment
Share on other sites

Hi.

We can use the keycode for it.

Ex:- 

$(document).keydown(function(e){
    if(e.keyCode === 37){ plusSlides(-1) }    //for left arrow
    if(e.keyCode === 39){ plusSlides(1) }     //for right arrow
});

Hope it helps.

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
 Share

×
×
  • Create New...