mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
17 lines
403 B
JavaScript
17 lines
403 B
JavaScript
define( [
|
|
"jquery",
|
|
"lib/helper"
|
|
], function( $, helper ) {
|
|
|
|
return $.extend( helper, {
|
|
focusGrid: function( element ) {
|
|
element.find( ":tabbable" ).last().simulate( "focus" );
|
|
$( document.activeElement ).simulate( "keydown", { keyCode: $.ui.keyCode.TAB } );
|
|
$( document.activeElement ).simulate( "keydown", { keyCode: $.ui.keyCode.TAB } );
|
|
|
|
return $( document.activeElement );
|
|
}
|
|
} );
|
|
|
|
} );
|