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

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

Issue 1147843003: Set WebKeyboardEvent.domCode on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 5 years, 7 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/web_input_event_aura_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/web_input_event_aura.cc
diff --git a/content/browser/renderer_host/web_input_event_aura.cc b/content/browser/renderer_host/web_input_event_aura.cc
index 4d115f669721c9120aea757697a7a4b528238c39..b09f67e680220fd00d9726e98172ef2b9a523e94 100644
--- a/content/browser/renderer_host/web_input_event_aura.cc
+++ b/content/browser/renderer_host/web_input_event_aura.cc
@@ -273,7 +273,10 @@ blink::WebKeyboardEvent MakeWebKeyboardEvent(const ui::KeyEvent& event) {
#if defined(OS_WIN)
if (event.HasNativeEvent()) {
// Key events require no translation by the aura system.
- return MakeWebKeyboardEventFromNativeEvent(event.native_event());
+ blink::WebKeyboardEvent webkit_event(
+ MakeWebKeyboardEventFromNativeEvent(event.native_event()));
+ webkit_event.domCode = static_cast<int>(event.code());
+ return webkit_event;
}
#endif
return MakeWebKeyboardEventFromAuraEvent(event);
« no previous file with comments | « no previous file | content/browser/renderer_host/web_input_event_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698