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

Unified Diff: third_party/WebKit/Source/core/events/KeyboardEvent.cpp

Issue 1471883003: Added code and key to KeyboardEventInit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make code/key RuntimeEnabled Created 5 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
Index: third_party/WebKit/Source/core/events/KeyboardEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
index c523d1ea222fdfa1d6d8b3876425c7bfb74d5fd0..fae668b4a204368e85855427bc09e63e03912a89 100644
--- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
+++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
@@ -87,6 +87,8 @@ KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, AbstractView* vie
KeyboardEvent::KeyboardEvent(const AtomicString& eventType, const KeyboardEventInit& initializer)
: UIEventWithKeyState(eventType, initializer)
, m_keyIdentifier(initializer.keyIdentifier())
+ , m_code(initializer.code())
+ , m_key(initializer.key())
, m_location(initializer.location())
{
if (initializer.repeat())

Powered by Google App Engine
This is Rietveld 408576698