From 2e02e3cfdd2480db1970933c2a91af23093f9258 Mon Sep 17 00:00:00 2001 From: SangYong Park Date: Tue, 27 Aug 2013 21:54:16 +0900 Subject: [PATCH] Move key press commands clearing code to after key up event [Title] Move key press commands clearing code to after key up event [Issue#] P130822-07725 [Problem] Text was not entered when capital letter use [Cause] Clear key press commands by continuous key down events [Solution] Move key press commands clearing code to after key up event Change-Id: I5040aa24adfb9179147519ed3dac975a89d5d2e9 --- Source/WebKit2/WebProcess/WebPage/WebPage.cpp | 5 +++++ Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/WebKit2/WebProcess/WebPage/WebPage.cpp b/Source/WebKit2/WebProcess/WebPage/WebPage.cpp index 9debeba..86586e5 100755 --- a/Source/WebKit2/WebProcess/WebPage/WebPage.cpp +++ b/Source/WebKit2/WebProcess/WebPage/WebPage.cpp @@ -1812,6 +1812,11 @@ void WebPage::keyEvent(const WebKeyboardEvent& keyboardEvent) if (!handled) handled = performDefaultBehaviorForKeyEvent(keyboardEvent); +#if ENABLE(TIZEN_ISF_PORT) + if (keyboardEvent.type() == WebEvent::KeyUp) + m_keyPressCommands.clear(); +#endif + send(Messages::WebPageProxy::DidReceiveEvent(static_cast(keyboardEvent.type()), handled)); } diff --git a/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp b/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp index 42798d2..100f34d 100755 --- a/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp +++ b/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp @@ -661,7 +661,6 @@ void WebPage::didCancelComposition(Node* valueChangedNode) void WebPage::prepareKeyDownEvent() { m_prepareKeyDownEvent = true; - m_keyPressCommands.clear(); } void WebPage::swapKeyPressCommands(Vector >& commands) -- 2.7.4