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

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

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Access DOM Code value using embedder API Created 6 years, 2 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: Source/core/events/KeyboardEvent.cpp
diff --git a/Source/core/events/KeyboardEvent.cpp b/Source/core/events/KeyboardEvent.cpp
index 99be09ca9633867bb562e44244bb19ae8691609f..a9114aa6eda75c89ece15cdcaedcf80695aa15bf 100644
--- a/Source/core/events/KeyboardEvent.cpp
+++ b/Source/core/events/KeyboardEvent.cpp
@@ -23,6 +23,7 @@
#include "config.h"
#include "core/events/KeyboardEvent.h"
+#include "KeyboardCode.h"
Wez 2014/11/20 22:17:33 What is this include required for?
Habib Virji 2014/11/24 15:12:22 Done. It was previous include file that i created,
#include "platform/PlatformKeyboardEvent.h"
#include "platform/WindowsKeyboardCodes.h"
@@ -108,6 +109,7 @@ KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, AbstractView* vie
, m_keyIdentifier(key.keyIdentifier())
, m_location(keyLocationCode(key))
, m_isAutoRepeat(key.isAutoRepeat())
+ , m_code(key.code())
{
}
@@ -116,6 +118,7 @@ KeyboardEvent::KeyboardEvent(const AtomicString& eventType, const KeyboardEventI
, m_keyIdentifier(initializer.keyIdentifier)
, m_location(initializer.location)
, m_isAutoRepeat(initializer.repeat)
+ , m_code(initializer.code)
{
}

Powered by Google App Engine
This is Rietveld 408576698