mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-23 01:24:22 +00:00
bde431bb44
Ref gh-1528
15 lines
319 B
JavaScript
15 lines
319 B
JavaScript
define( [
|
|
"jquery",
|
|
"lib/helper"
|
|
], function( $, helper ) {
|
|
|
|
return $.extend( helper, {
|
|
simulateKeyDownUp: function( element, keyCode, shift ) {
|
|
element
|
|
.simulate( "keydown", { keyCode: keyCode, shiftKey: shift || false } )
|
|
.simulate( "keyup", { keyCode: keyCode, shiftKey: shift || false } );
|
|
}
|
|
} );
|
|
|
|
} );
|