SAMYANG/m/asset/js/sy.m.plugin.js
//Sliding with arrow keys, both, vertical and horizontal
Sliding with arrow keys, both, vertical and horizontal
Sliding with arrow keys both vertical and horizontal
function keydownHandler(e) {
            clearTimeout(keydownId);
            var activeElement = $(':focus');
            var keyCode = e.which;
            if (keyCode === 9) {
                onTab(e);
            }
            else if (!activeElement.is('textarea') && !activeElement.is('input') && !activeElement.is('select') &&
                activeElement.attr('contentEditable') !== "true" && activeElement.attr('contentEditable') !== '' &&
                options.keyboardScrolling && options.autoScrolling) {
                var keyControls = [40, 38, 32, 33, 34];
                if ($.inArray(keyCode, keyControls) > -1) {
                    e.preventDefault();
                }
                controlPressed = e.ctrlKey;
                keydownId = setTimeout(function () {
                    onkeydown(e);
                }, 150);
            }
        }
function keydownHandler ( e ) { clearTimeout ( keydownId ) ; var activeElement = $ ( ':focus' ) ; var keyCode = e . which ; if ( keyCode === 9 ) { onTab ( e ) ; } else if ( ! activeElement . is ( 'textarea' ) && ! activeElement . is ( 'input' ) && ! activeElement . is ( 'select' ) && activeElement . attr ( 'contentEditable' ) !== "true" && activeElement . attr ( 'contentEditable' ) !== '' && options . keyboardScrolling && options . autoScrolling ) { var keyControls = [ 40 , 38 , 32 , 33 , 34 ] ; if ( $ . inArray ( keyCode , keyControls ) > - 1 ) { e . preventDefault ( ) ; } controlPressed = e . ctrlKey ; keydownId = setTimeout ( function ( ) { onkeydown ( e ) ; } , 150 ) ; } }
Sliding with arrow keys, both, vertical and horizontal
Sliding with arrow keys both vertical and horizontal
//tab? //preventing the scroll with arrow keys & spacebar & Page Up & Down keys