WordPress.org

Forums

Slideshow
Add keyboard functionality - (File used before has changed) (1 post)

  1. Jack
    Member
    Posted 1 year ago #

    I was wondering if there was a way to use keyboard functionality to move the sliders left and right? I find the post that resolved it it before, but it said to change a js file that I don't think you have in the latest version (slideshow.js). I tried putting it at the end of the both the min files but it didn't do anything. Where would I put the code now?

    Original post: http://wordpress.org/support/topic/add-keyboard-functionality?replies=4

    Code it recommended:

    $(document.documentElement).keyup(function (event) {
    // handle cursor keys
    if (event.keyCode == 39) {
    resetInterval();
    gotoView(1, true)
    } else if (event.keyCode == 37) {
    // go right
    resetInterval();
    gotoView(-1, true)
    }
    });
    $previousButton.click(function () {
    if ($buttonsActive) {
    resetInterval();
    gotoView(-1, true)
    }
    });

    Thanks in advance!

    https://wordpress.org/plugins/slideshow-jquery-image-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Slideshow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic