I also figured out how to add the keyboard arrow keys navigation.
Add this lines of code
Code:
/* ==== keyboard right arrow & left arrow ==== */
this.oc.keydown = this.oc.onkeydown = function (e) {
if (e == null) { // ie
keycode = event.keyCode;
} else { // mozilla
keycode = e.which;
}
if (this.parent.view < this.parent.NF - 1 && keycode == 39)
this.parent.calc(1);
if (this.parent.view > 0 && keycode == 37)
this.parent.calc(-1);
}
before this line of code
Code:
/* ==== right arrow ==== */
Now you can use keyboard left and right arrow keys to navigate the images.
Cheers!
Bookmarks