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

Unified Diff: ui/events/event.cc

Issue 1585193002: Build key map DomCodeToKey() for Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dtapuska's review Created 4 years, 10 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: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 0961e156f69cf8b2994f686e3fc3f48410480a58..1c33a04ee741fb97018ea6019200c9c59149da0b 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -37,6 +37,10 @@
#include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" // nogncheck
#endif
+#if defined(OS_WIN)
+#include "ui/events/keycodes/key_map_win.h"
Wez 2016/02/11 23:14:44 key_map_win.{cc|h} should be renamed to match the
+#endif
+
namespace {
std::string EventTypeName(ui::EventType type) {
@@ -692,6 +696,8 @@ KeyEvent::KeyEvent(const base::NativeEvent& native_event)
// Only Windows has native character events.
if (is_char_)
key_ = DomKey::FromCharacter(native_event.wParam);
+ else
+ key_ = WindowsKeyMap::DomCodeAndFlagsToDomKeyStatic(code_, flags());
#endif
}
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/events.gyp » ('j') | ui/events/keycodes/key_map_win.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698