Commit 6fe31542 authored by webchick's avatar webchick

#673810 by casey and mrfelton: Make overlay respect key handlers.

parent 7cfebb5d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment