Member
Member
Ruriko   26-09-2012, 09:59
#1

I am using the keyboard plugin here http://www.zenphoto.org/news/keyboard-plugin I installed and activated and I tried testing but it doesn't work. I can't use the left & right keyboard to navigate images.

Is there another plugin that can navigate images using the keyboard?

Administrator
Administrator
acrylian   26-09-2012, 19:16
#2

No, all known are listed there. I don't know that one but it might require adjustments depending on the theme.

You can try this jQuery javascript code on a normal theme's image.php:
`
$(function() {
$(document).keyup(function (event) {
if (event.keyCode == 37) {
// Links

            window.location.href="";

        } else if (event.keyCode == 39) {
            // Rechts

            window.location.href="";

        }
        });
    });

`

Member
Member
Laurent   26-09-2012, 21:31
#3

Oups !

Can you download it again and report here please. I made a few change.

Member
Member
Ruriko   27-09-2012, 00:00
#4

Thanks the plugin is now working

Member
Member
pvankempen   20-10-2012, 00:54
#5

The keyboard-plugin worked fine for me right away ... for images (i.e. in the image.php page). But I was surprised it didn't also handle left/right arrows in the album.php page (to navigate between albums). I got that working by making a minor change to the plugin:

if ($_zp_gallery_page = 'album.php') { var nextURL=""; var prevURL=""; } if ($_zp_gallery_page = 'image.php') { var nextURL=""; var prevURL=""; }

Member
Member
Laurent   20-10-2012, 14:17
#6

Yes, you're right.
i can include your change in the file if you are ok.

Member
Member
pvankempen   20-10-2012, 20:06
#7

Sure, feel free to include it.

Member
Member
Laurent   21-10-2012, 14:13
#8

Thank you,

Your change as been include in the file.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.