function lbs_keyEvent(event){
    switch (event.keyCode) {
    case 37://left arrow key
        lbs_slide("back");
        break;
    case 39://right arrow key
        lbs_slide("forward");
        break;
    case 27://esc key
        lbs_dispose();
        break;
    case 38:
        if(lbs_infoboxMode){
            if(!lbs_infoboxShowing){
                document.getElementById("lightboxesImageInfoSlider").className = "lightboxesImageInfoSliderTilt";  
                lbs_infoboxShowing = true;
            }
            lbs_infoboxVisibility();
        }  
        break;
    case 40:
        if(lbs_infoboxMode){
            if(lbs_infoboxShowing){
                document.getElementById("lightboxesImageInfoSlider").className = "";
                lbs_infoboxShowing = false;
            }
            lbs_infoboxVisibility();
        }     
        break;
    default:
        return;
    }
}
//Key event listener for keyboard based navigation
Key event listener for keyboard based navigation
Key event listener for keyboard based navigation
function lbs_keyEvent(event){
    switch (event.keyCode) {
    case 37:
        lbs_slide("back");
        break;
    case 39:
        lbs_slide("forward");
        break;
    case 27:
        lbs_dispose();
        break;
    case 38:
        if(lbs_infoboxMode){
            if(!lbs_infoboxShowing){
                document.getElementById("lightboxesImageInfoSlider").className = "lightboxesImageInfoSliderTilt";  
                lbs_infoboxShowing = true;
            }
            lbs_infoboxVisibility();
        }  
        break;
    case 40:
        if(lbs_infoboxMode){
            if(lbs_infoboxShowing){
                document.getElementById("lightboxesImageInfoSlider").className = "";
                lbs_infoboxShowing = false;
            }
            lbs_infoboxVisibility();
        }     
        break;
    default:
        return;
    }
}
function lbs_keyEvent ( event ) { switch ( event . keyCode ) { case 37 : lbs_slide ( "back" ) ; break ; case 39 : lbs_slide ( "forward" ) ; break ; case 27 : lbs_dispose ( ) ; break ; case 38 : if ( lbs_infoboxMode ) { if ( ! lbs_infoboxShowing ) { document . getElementById ( "lightboxesImageInfoSlider" ) . className = "lightboxesImageInfoSliderTilt" ; lbs_infoboxShowing = true ; } lbs_infoboxVisibility ( ) ; } break ; case 40 : if ( lbs_infoboxMode ) { if ( lbs_infoboxShowing ) { document . getElementById ( "lightboxesImageInfoSlider" ) . className = "" ; lbs_infoboxShowing = false ; } lbs_infoboxVisibility ( ) ; } break ; default : return ; } }
Key event listener for keyboard based navigation
Key event listener for keyboard based navigation
//left arrow key //right arrow key //esc key