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

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

Issue 2650913006: Send keyboard-derived commands only if the key events are sent (Closed)
Patch Set: Created 3 years, 11 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 6cd8721519cdb1180aab3f3ed001bbfe9164fed9..c4abcc3db8e9602c6a0da5e3e01f4757db626217 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -2233,9 +2233,7 @@ void RenderWidgetHostViewAura::ForwardKeyboardEvent(
it->argument()));
}
- target_host->Send(new InputMsg_SetEditCommandsForNextKeyEvent(
- target_host->GetRoutingID(), edit_commands));
- target_host->ForwardKeyboardEvent(event);
+ target_host->ForwardKeyboardEventWithCommands(event, &edit_commands);
return;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698