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

Unified Diff: content/browser/renderer_host/render_widget_host_view_gtk.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 | « no previous file | content/browser/renderer_host/render_widget_host_view_win.cc » ('j') | 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_gtk.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_gtk.cc b/content/browser/renderer_host/render_widget_host_view_gtk.cc
index 11b33572a07ef6c919263dd2d3fa8c312059767a..359cc5cf7c2bd012472d16601c2b8ce19fba13f4 100644
--- a/content/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/content/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -203,11 +203,6 @@ class RenderWidgetHostViewGtkWidget {
static gboolean OnKeyPressReleaseEvent(GtkWidget* widget,
GdkEventKey* event,
RenderWidgetHostViewGtk* host_view) {
- // ESC exits mouse lock.
- if (host_view->mouse_locked_ && event->keyval == GDK_Escape) {
- host_view->UnlockMouse();
- return TRUE;
- }
// Force popups or fullscreen windows to close on Escape so they won't keep
// the keyboard grabbed or be stuck onscreen if the renderer is hanging.
bool should_close_on_escape =
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698