Is it possible to disable arrows keys in web photo gallery, so I can switch images using buttons in pop up window only?

Q: I use your VisualLightBox. Gallery works good, but I have a question.
Is it possible to disable arrows keys in VisualLightBox, so I can switch images using buttons in pop up window only?

A: It's possible to disable keyboard keys. To do it open "visuallightbox.js" file in any text editor (for example, Notepad), find following line:

{document.onkeydown=ah}function aO(){document.onkeydown=""}


and exchange 'ah' on "". So, you'll have:

{document.onkeydown=""}function aO(){document.onkeydown=""}

Related