kthornbloom / Smoothproducts

A simple, lightweight and responsive product image viewer using jQuery
kthornbloom.com/smoothproducts
185 stars 89 forks source link

Consider allowing a user keydown event to close the sp-lightbox image #4

Closed nueverest closed 10 years ago

nueverest commented 10 years ago

Some users do not know that they can click to close the photo. These users first try to use the keyboard escape key or other key to close the sp-lightbox image.

Consider adding some javascript like: $(document.body).keydown(function (event) { $(".sp-lightbox").fadeOut(function () { $(".sp-lightbox").remove(); }) });

This would allow the user to press any key, as well as, be able to click.

kthornbloom commented 10 years ago

I agree, I'll add this feature in soon.

kthornbloom commented 10 years ago

Added!