diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-30 06:45:26 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-30 06:45:26 +0000 |
commit | 6fe31542f67b31d6f7c93c6055c7ba0ca86b5fc3 (patch) | |
tree | fa0dde765487c8e8748bdb00b77def5ecaeebf94 | |
parent | 7cfebb5dab4d7682a196197d65a53d2d8484e25d (diff) | |
download | brdo-6fe31542f67b31d6f7c93c6055c7ba0ca86b5fc3.tar.gz brdo-6fe31542f67b31d6f7c93c6055c7ba0ca86b5fc3.tar.bz2 |
#673810 by casey and mrfelton: Make overlay respect key handlers.
-rw-r--r-- | modules/overlay/overlay-parent.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js index f4d92cd42..ff346a76d 100644 --- a/modules/overlay/overlay-parent.js +++ b/modules/overlay/overlay-parent.js @@ -406,6 +406,12 @@ Drupal.overlay.bindChild = function (iframeWindow, isClosing) { $(document).unbind('mousedown.dialog-overlay click.dialog-overlay'); $('.ui-widget-overlay').bind('mousedown.dialog-overlay click.dialog-overlay', function (){return false;}); + // Unbind the keydown and keypress handlers installed by ui.dialog because + // they interfere with use of browser's keyboard hotkeys like CTRL+w. + // This may cause problems when using modules that implement keydown or + // keypress handlers as they aren't blocked when overlay is open. + $(document).unbind('keydown.dialog-overlay keypress.dialog-overlay'); + // Reset the scroll to the top of the window so that the overlay is visible again. window.scrollTo(0, 0); |