diff options
author | Corey Frang <gnarf@gnarf.net> | 2011-08-19 06:03:59 -0500 |
---|---|---|
committer | Corey Frang <gnarf@gnarf.net> | 2011-08-19 06:03:59 -0500 |
commit | 96e5c241e1b26224c53738b590e07290db7a3e54 (patch) | |
tree | 130cc4262f20df6b6c2df392466733fb9c253547 /ui/jquery.ui.dialog.js | |
parent | fb57cc8aba32eb1d544b75e6a2c05785eeecf0cd (diff) | |
download | jquery-ui-96e5c241e1b26224c53738b590e07290db7a3e54.tar.gz jquery-ui-96e5c241e1b26224c53738b590e07290db7a3e54.zip |
Dialog: Tabbing out of a modal dialog was possible because keypress doesn't fire for tabs everywhere, switched to keyup. Added Unit Test - Caught by @DomenicDenicola - Fixes #3123 - Tabbing stops in modal dialog
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 493ed07e6..e8107db7c 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -293,7 +293,7 @@ $.widget("ui.dialog", { // prevent tabbing out of modal dialogs if ( options.modal ) { - uiDialog.bind( "keypress.ui-dialog", function( event ) { + uiDialog.bind( "keyup.ui-dialog", function( event ) { if ( event.keyCode !== $.ui.keyCode.TAB ) { return; } |