Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_view_win.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc |
| index 2a3e0cba4690434eb67ab3faebae06ab353941ad..d204431ada55f9bcd8876d1df1cb8a332636f840 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_win.cc |
| +++ b/content/browser/renderer_host/render_widget_host_view_win.cc |
| @@ -1284,22 +1284,6 @@ LRESULT RenderWidgetHostViewWin::OnKeyEvent(UINT message, WPARAM wparam, |
| LPARAM lparam, BOOL& handled) { |
| handled = TRUE; |
| - // When Escape is pressed, unlock the mouse or force fullscreen windows to |
| - // close if necessary. |
| - if ((message == WM_KEYDOWN || message == WM_KEYUP) && wparam == VK_ESCAPE) { |
| - bool absorbed = false; |
| - if (mouse_locked_) { |
| - UnlockMouse(); |
| - absorbed = true; |
| - } |
| - if (is_fullscreen_) { |
|
yzshen1
2011/10/15 03:25:53
This is the flash-style fullscreen. You should not
koz (OOO until 15th September)
2011/10/15 04:12:35
Done.
|
| - SendMessage(WM_CANCELMODE); |
| - absorbed = true; |
| - } |
| - if (absorbed) |
| - return 0; |
| - } |
| - |
| // If we are a pop-up, forward tab related messages to our parent HWND, so |
| // that we are dismissed appropriately and so that the focus advance in our |
| // parent. |