diff options
author | David Souther <davidsouther@gmail.com> | 2012-10-15 19:32:23 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-10-24 17:03:00 -0400 |
commit | 3a09a4a0de1f485a63091ffe8188b080a561b592 (patch) | |
tree | 94856e343d8c209b9892042fa20838f70f9f885a /ui/jquery.ui.dialog.js | |
parent | 14691ae6feea2732ec5aeae57b4275aa0e4d1beb (diff) | |
download | jquery-ui-3a09a4a0de1f485a63091ffe8188b080a561b592.tar.gz jquery-ui-3a09a4a0de1f485a63091ffe8188b080a561b592.zip |
Dialog: Prevent tabbing off any dialog. Fixes #3768 - Dialog: contain focus within dialog.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 6617c344e..b54cd971f 100644 --- a/ui/jquery.ui.dialog.js +++ b/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; } |