mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Prevent tabbing off any dialog. Fixes #3768 - Dialog: contain focus within dialog.
This commit is contained in:
parent
14691ae6fe
commit
3a09a4a0de
4
ui/jquery.ui.dialog.js
vendored
4
ui/jquery.ui.dialog.js
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user