Using arrow keys to browse images

cgan

Avatar: cgan

2011-03-30 19:55

If you want to use the arrow keys to browse between images in Lightbox you can edit file: core/litebox-1.0.js
On line 375 you find this:
} else if(key == 'p'){ // display previous image
change to this:
} else if((key == 'p') || (keycode == 37)){
On line 380 you find this:
} else if(key == 'n') { // display next image
Change to this:
} else if((key == 'n') || (keycode == 39)){
This will make it possible to use left and right arrow key to browse images.

» Quick.Cms v3.x

cgan

Back to top
about us | contact