Home Forums Theme support Strong thema – gallery keyboard navigation

This topic contains 4 replies, has 2 voices, and was last updated by  7Theme Support 6 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Hello

    gallery keyboard navigation not working.
    ex. code in page
    [gallery columns="4" link="file" gallery_style="justifyGallery" ids="1383,1384,1385"]

    Hi,

    you mean the lightbox right? (When you click an image to enlarge it). I’m not sure if the jquery lightbox plugin support the keyboard navigation. We will take a look at it, if its possible then we make an update for it.

    Yes, I have the problem when I click an image to enlarge it. When it is possible to receive your answer/update?

    I think we can provide the update within the next 4-5 days

    Hi,

    it seems the jQuery plugin doesnt support the keyboard navigation, but we’ve made a workaround. Please go to WP Admin -> Appearance -> Theme Options -> Extra Javascript content and add this code:

    jQuery(document).keyup(function(e) { 
            if (e.keyCode == 27) { // esc keycode
           	jQuery('a.tos-close').trigger('click');
            }
            if (e.keyCode == 37) { // prev keycode
           	jQuery('a.tos-prev').trigger('click');
            }
            if (e.keyCode == 39) { // next keycode
           	jQuery('a.tos-next').trigger('click');
            }
        });

    We’ve tested it and its working.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.