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?
Comments
You can try this jQuery javascript code on a normal theme's image.php:
`
$(function() {
$(document).keyup(function (event) {
if (event.keyCode == 37) {
// Links
<?php if (hasPrevImage()) { ?>
window.location.href="<?php echo getPrevImageURL(); ?>";
<?php } ?>
} else if (event.keyCode == 39) {
// Rechts
<?php if (hasNextImage()) { ?>
window.location.href="<?php echo getNextImageURL(); ?>";
<?php } ?>
}
});
});
`
Can you download it again and report here please. I made a few change.
`
if ($_zp_gallery_page = 'album.php') {
<?php if (getNextAlbum()) { ?>var nextURL="<?=getNextAlbumURL();?>";<?php } ?>
<?php if (getPrevAlbum()) { ?>var prevURL="<?=getPrevAlbumURL();?>";<?php } ?>
}
if ($_zp_gallery_page = 'image.php') {
<?php if (hasNextImage()) { ?>var nextURL="<?=getNextImageURL();?>";<?php } ?>
<?php if (hasPrevImage()) { ?>var prevURL="<?=getPrevImageURL();?>";<?php } ?>
}
`
i can include your change in the file if you are ok.
Your change as been include in the file.