diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2014-06-10 13:51:25 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2014-06-10 13:59:45 +0200 |
commit | 226cc3e9e57c7591ff6a2ee02ffed52ac97786a9 (patch) | |
tree | e104fd5bb3b470d47c913917dbbbcd1ae4f89969 /ui/dialog.js | |
parent | a0b84767a76098cdcc6375dfe28a7fee866bd395 (diff) | |
download | jquery-ui-226cc3e9e57c7591ff6a2ee02ffed52ac97786a9.tar.gz jquery-ui-226cc3e9e57c7591ff6a2ee02ffed52ac97786a9.zip |
Dialog: Honor preventDefault when managing focus
If event.isDefaultPrevented() is true, the focus management is
completely skipped, assuming the user manages focus manually.
Fixes #10103
Closes gh-1265
Diffstat (limited to 'ui/dialog.js')
-rw-r--r-- | ui/dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/dialog.js b/ui/dialog.js index 7998b042c..0ee94e4cf 100644 --- a/ui/dialog.js +++ b/ui/dialog.js @@ -334,7 +334,7 @@ return $.widget( "ui.dialog", { } // prevent tabbing out of dialogs - if ( event.keyCode !== $.ui.keyCode.TAB ) { + if ( event.keyCode !== $.ui.keyCode.TAB || event.isDefaultPrevented() ) { return; } var tabbables = this.uiDialog.find( ":tabbable" ), |