Skip to content
Permalink
Browse files

Dialog: Update to 96e5c24 - keyup apparently doesn't work like I thou…

…ght it would everywhere, switching back to keydown.
  • Loading branch information
gnarf committed Aug 20, 2011
1 parent 96c2c8e commit dfe75e1b552013c440186645a7a1ae9ec3c757b5
Showing with 2 additions and 2 deletions.
  1. +1 −1 tests/unit/dialog/dialog_tickets.js
  2. +1 −1 ui/jquery.ui.dialog.js
@@ -14,7 +14,7 @@ asyncTest( "#3123: Prevent tabbing out of modal dialogs", function() {

inputs.eq( 1 ).focus();
equal( document.activeElement, inputs[1], "Focus set on second input" );
inputs.eq( 1 ).simulate( "keyup", { keyCode: $.ui.keyCode.TAB });
inputs.eq( 1 ).simulate( "keydown", { keyCode: $.ui.keyCode.TAB });

setTimeout( checkTab, 2 );

@@ -293,7 +293,7 @@ $.widget("ui.dialog", {

// prevent tabbing out of modal dialogs
if ( options.modal ) {
uiDialog.bind( "keyup.ui-dialog", function( event ) {
uiDialog.bind( "keydown.ui-dialog", function( event ) {
if ( event.keyCode !== $.ui.keyCode.TAB ) {
return;
}

0 comments on commit dfe75e1

Please sign in to comment.
You can’t perform that action at this time.