Move key press commands clearing code to after key up event
authorSangYong Park <sy302.park@samsung.com>
Tue, 27 Aug 2013 12:54:16 +0000 (21:54 +0900)
committerSangYong Park <sy302.park@samsung.com>
Wed, 28 Aug 2013 00:12:14 +0000 (09:12 +0900)
[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
Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp

index 9debeba..86586e5 100755 (executable)
@@ -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<uint32_t>(keyboardEvent.type()), handled));
 }
 
index 42798d2..100f34d 100755 (executable)
@@ -661,7 +661,6 @@ void WebPage::didCancelComposition(Node* valueChangedNode)
 void WebPage::prepareKeyDownEvent()
 {
     m_prepareKeyDownEvent = true;
-    m_keyPressCommands.clear();
 }
 
 void WebPage::swapKeyPressCommands(Vector<OwnPtr<KeyPressCommand> >& commands)