From: SangYong Park Date: Wed, 10 Jul 2013 09:20:04 +0000 (+0900) Subject: Fix clearing text issue of email composer X-Git-Tag: submit/tizen_2.2/20130714.131554~1 X-Git-Url: http://review.tizen.org/git/?p=framework%2Fweb%2Fwebkit-efl.git;a=commitdiff_plain;h=b5a8698f2b239dd78b5fd90df308efa4da808c82 Fix clearing text issue of email composer [Title] Fix clearing text issue of email composer [Issue#] N/A [Problem] Text was cleared after to tap enter key. [Cause] IMF callback was called without filtering. [Solution] Also handle IMF callback if no filtering. Change-Id: I8799a9f1119e095a503de0dcc0af36ff86465cd9 --- diff --git a/Source/WebKit2/WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp b/Source/WebKit2/WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp index a7c528f..6a93236 100755 --- a/Source/WebKit2/WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp +++ b/Source/WebKit2/WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp @@ -53,18 +53,17 @@ namespace WebKit { static bool handleKeyPressCommands(WebPage* page, KeyboardEvent* event) { const NativeWebKeyboardEvent* currentEvent = static_cast(WebPage::currentEvent()); - if (!currentEvent || !currentEvent->isFiltered()) - return false; + bool isFiltered = (currentEvent && currentEvent->isFiltered()); if (event->type() != eventNames().keypressEvent) - return true; + return isFiltered; Vector > commands; page->swapKeyPressCommands(commands); size_t size = commands.size(); if (!size) - return true; + return isFiltered; for (size_t i = 0; i < size; ++i) { switch (commands[i]->type) { @@ -95,7 +94,7 @@ static bool handleKeyPressCommands(WebPage* page, KeyboardEvent* event) event->setDefaultHandled(); - return true; + return isFiltered; } #endif