Skip to content
Permalink
Browse files
Dialog: Prevent tabbing off any dialog. Fixes #3768 - Dialog: contain…
… focus within dialog.
  • Loading branch information
DavidSouther authored and jzaefferer committed Oct 24, 2012
1 parent 14691ae commit 3a09a4a0de1f485a63091ffe8188b080a561b592
Showing 1 changed file with 2 additions and 2 deletions.
@@ -174,9 +174,9 @@ $.widget("ui.dialog", {
uiDialog.bgiframe();
}

// prevent tabbing out of modal dialogs
// prevent tabbing out of dialogs
this._on( uiDialog, { keydown: function( event ) {
if ( !options.modal || event.keyCode !== $.ui.keyCode.TAB ) {
if ( event.keyCode !== $.ui.keyCode.TAB ) {
return;
}

2 comments on commit 3a09a4a

@jzaefferer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DavidSouther David, could you sign our CLA? http://jquery.github.com/cla.html Thanks.

@DavidSouther
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My pleasure, and done.

Please sign in to comment.