Permalink
Browse files

Dialog: Prevent tabbing off any dialog. Fixes #3768 - Dialog: contain…

… focus within dialog.
  • Loading branch information...
1 parent 14691ae commit 3a09a4a0de1f485a63091ffe8188b080a561b592 @DavidSouther DavidSouther committed with jzaefferer Oct 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.dialog.js
View
@@ -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

Owner

jzaefferer replied Nov 26, 2012

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

Contributor

DavidSouther replied Nov 26, 2012

My pleasure, and done.

Please sign in to comment.