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

This commit is contained in:
David Souther 2012-10-15 19:32:23 +00:00 committed by Jörn Zaefferer
parent 14691ae6fe
commit 3a09a4a0de

View File

@ -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;
}