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

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

Issue 83753006: Merge 236478 "Update accept_return_character_ for synthetic even..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years, 1 month 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 | 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_aura.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_aura.cc (revision 236933)
+++ content/browser/renderer_host/render_widget_host_view_aura.cc (working copy)
@@ -2578,6 +2578,10 @@
host_->Shutdown();
}
} else {
+ // Accept return key character events between its press and release events.
+ if (event->key_code() == ui::VKEY_RETURN)
+ accept_return_character_ = event->type() == ui::ET_KEY_PRESSED;
+
// We don't have to communicate with an input method here.
if (!event->HasNativeEvent()) {
NativeWebKeyboardEvent webkit_event(
@@ -2588,8 +2592,6 @@
ui::EventTimeForNow().InSecondsF());
host_->ForwardKeyboardEvent(webkit_event);
} else {
- if (event->key_code() == ui::VKEY_RETURN)
- accept_return_character_ = event->type() == ui::ET_KEY_PRESSED;
NativeWebKeyboardEvent webkit_event(event);
host_->ForwardKeyboardEvent(webkit_event);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698