Index: Source/platform/PlatformKeyboardEvent.h |
diff --git a/Source/platform/PlatformKeyboardEvent.h b/Source/platform/PlatformKeyboardEvent.h |
index a67cc216c84893b9f4c62c5612f8b686a0ea1c10..16e629094fa12750eb0a7104d7b533f240254571 100644 |
--- a/Source/platform/PlatformKeyboardEvent.h |
+++ b/Source/platform/PlatformKeyboardEvent.h |
@@ -51,6 +51,7 @@ public: |
, m_text(text) |
, m_unmodifiedText(unmodifiedText) |
, m_keyIdentifier(keyIdentifier) |
+ , m_code("") |
Wez
2014/11/20 22:17:33
Why are you not adding |code| to the constructor s
Habib Virji
2014/11/24 15:12:22
Since the constructor is used by inspector, there
|
, m_windowsVirtualKeyCode(windowsVirtualKeyCode) |
, m_nativeVirtualKeyCode(nativeVirtualKeyCode) |
, m_autoRepeat(isAutoRepeat) |
@@ -76,6 +77,8 @@ public: |
String keyIdentifier() const { return m_keyIdentifier; } |
+ String code() const { return m_code; } |
+ |
// Most compatible Windows virtual key code associated with the event. |
// Zero for Char events. |
int windowsVirtualKeyCode() const { return m_windowsVirtualKeyCode; } |
@@ -93,6 +96,7 @@ protected: |
String m_text; |
String m_unmodifiedText; |
String m_keyIdentifier; |
+ String m_code; |
int m_windowsVirtualKeyCode; |
int m_nativeVirtualKeyCode; |
bool m_autoRepeat; |