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 15, 2012
1 parent 14691ae commit 3a09a4a0de1f485a63091ffe8188b080a561b592
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.dialog.js
@@ -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

This comment has been minimized.

Copy link
Member

replied Nov 26, 2012

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

@DavidSouther

This comment has been minimized.

Copy link
Contributor Author

replied Nov 26, 2012

My pleasure, and done.

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