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

Unified Diff: ui/events/event.cc

Issue 1776673007: [Windows] Produce correct DomKey for NumPad when combined with Shift/NumLock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wez's review 2 Created 4 years, 9 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 | « ui/events/BUILD.gn ('k') | ui/events/events.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index ca6704b6f8fa5b6e49888074b799c620b7bc90e2..0630356168c2e1efd1638dbb368d585079c6e6da 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -865,7 +865,7 @@ KeyEvent::KeyEvent(const base::NativeEvent& native_event)
if (is_char_)
key_ = DomKey::FromCharacter(native_event.wParam);
else
- key_ = PlatformKeyMap::DomCodeAndFlagsToDomKeyStatic(code_, flags());
+ key_ = PlatformKeyMap::DomKeyFromNative(native_event);
#endif
}
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/events.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698