tutorialzine/touchTouch

Close on ESC

Opened this issue · 1 comments

Hi. maybe add any construction like this:

$(document).keyup(function(e) {
if (e.keyCode == 27) { hideOverlay(); }
});

    $(window).bind('keydown', function(e){
        if (e.keyCode == 37){
            showPrevious();
        }
        else if (e.keyCode==39){
            showNext();
        }
        else if (e.keyCode == 27){
            hideOverlay();
        }

    });