Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 8301021: Remove redundant 'escape to quit fullscreen/mouse lock' code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..dc36f766d7d383b2e88b759201bf3c7362ff1893 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -1284,20 +1284,12 @@ 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.
+ // When Escape is pressed, 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_) {
SendMessage(WM_CANCELMODE);
- absorbed = true;
- }
- if (absorbed)
return 0;
+ }
}
// If we are a pop-up, forward tab related messages to our parent HWND, so
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698