From 3a09a4a0de1f485a63091ffe8188b080a561b592 Mon Sep 17 00:00:00 2001 From: David Souther Date: Mon, 15 Oct 2012 19:32:23 +0000 Subject: [PATCH] Dialog: Prevent tabbing off any dialog. Fixes #3768 - Dialog: contain focus within dialog. --- ui/jquery.ui.dialog.js | 4 ++-- 1 file 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; } -- 2.39.5