| Index: Source/core/events/KeyboardEvent.cpp
|
| diff --git a/Source/core/events/KeyboardEvent.cpp b/Source/core/events/KeyboardEvent.cpp
|
| index ac7ae1f7ad51bd6b10b7387839bb4dd0d16d4968..dbf12a9f88cb4eb07ed149269e520e66474b7be2 100644
|
| --- a/Source/core/events/KeyboardEvent.cpp
|
| +++ b/Source/core/events/KeyboardEvent.cpp
|
| @@ -163,6 +163,14 @@ int KeyboardEvent::keyCode() const
|
| // We match IE.
|
| if (!m_keyEvent)
|
| return 0;
|
| +
|
| +#if OS(ANDROID)
|
| + // FIXME: Check to see if this applies to other OS.
|
| + // If the key event belongs to IME composition then propagate to JS.
|
| + if (m_keyEvent->nativeVirtualKeyCode() == 0xE5) // VKEY_PROCESSKEY
|
| + return m_keyEvent->nativeVirtualKeyCode();
|
| +#endif
|
| +
|
| if (type() == EventTypeNames::keydown || type() == EventTypeNames::keyup)
|
| return windowsVirtualKeyCodeWithoutLocation(m_keyEvent->windowsVirtualKeyCode());
|
|
|
|
|