Index: Source/core/events/KeyboardEvent.h |
diff --git a/Source/core/events/KeyboardEvent.h b/Source/core/events/KeyboardEvent.h |
index 9a7dc39682b9e03d4ac25b66abdb3600414eb529..4caea941751a42dd32307253df5179a00da71f12 100644 |
--- a/Source/core/events/KeyboardEvent.h |
+++ b/Source/core/events/KeyboardEvent.h |
@@ -37,6 +37,7 @@ struct KeyboardEventInit : public UIEventInit { |
KeyboardEventInit(); |
String keyIdentifier; |
+ String code; |
unsigned location; |
bool ctrlKey; |
bool altKey; |
@@ -85,6 +86,8 @@ public: |
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey); |
const String& keyIdentifier() const { return m_keyIdentifier; } |
+ const String& code() { return m_code; }; |
+ |
unsigned location() const { return m_location; } |
bool getModifierState(const String& keyIdentifier) const; |
@@ -113,6 +116,7 @@ private: |
String m_keyIdentifier; |
unsigned m_location; |
bool m_isAutoRepeat : 1; |
+ String m_code; |
}; |
class KeyboardEventDispatchMediator : public EventDispatchMediator { |