From b5a8698f2b239dd78b5fd90df308efa4da808c82 Mon Sep 17 00:00:00 2001 From: SangYong Park Date: Wed, 10 Jul 2013 18:20:04 +0900 Subject: [PATCH] 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 --- .../WebKit2/WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 2.7.4