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

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

Issue 2644843004: Send keyboard-derived commands only if the key events are sent (Closed)
Patch Set: add TODO 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 e70763dad07dfdc455d754b6759cae09dd8fe7ac..7a595d892ec6418f0672a59ca305961118d86520 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -2242,9 +2242,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