jquery-ui/tests/unit/spinner/spinner_test_helpers.js
2011-08-06 17:07:12 -04:00

6 lines
227 B
JavaScript

var spinner_simulateKeyDownUp = function( element, keyCode, shift ) {
element
.simulate( "keydown", { keyCode: keyCode, shiftKey: shift || false } )
.simulate( "keyup", { keyCode: keyCode, shiftKey: shift || false } );
};