Index: modules/overlay/overlay-parent.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/overlay/overlay-parent.js,v
retrieving revision 1.12
diff -u -r1.12 overlay-parent.js
--- modules/overlay/overlay-parent.js	6 Jan 2010 04:03:39 -0000	1.12
+++ modules/overlay/overlay-parent.js	6 Jan 2010 12:46:51 -0000
@@ -394,6 +394,12 @@
   $(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);
 
