Remove selection handle after select image in e-mail app
authorTaeyun An <ty.an@samsung.com>
Mon, 20 May 2013 10:55:01 +0000 (19:55 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 10 Oct 2013 05:47:55 +0000 (05:47 +0000)
[Title] Remove selection handle after select image in e-mail app
[Issue#] P130515-5443
[Problem] Selection handles are not disappear after select image in e-mail app
[Cause] When select the image then webview is focused out, so It doesn't have caret. at that time webkit is excute return before text selection mode to false.
[Solution] Add text selection mode to false before return.

Change-Id: I47094afb07229f53324643f621299facb8b0c116

Source/WebKit2/UIProcess/API/efl/tizen/TextSelection.cpp

index 2837d6b..5eb3b36 100755 (executable)
@@ -114,8 +114,10 @@ void TextSelection::update()
                 if (!editor.selectionIsNone && !editor.selectionIsRange)
                     caretRect = editor.selectionRect;
 
-                if (!caretRect.isEmpty())
+                if (!caretRect.isEmpty()) {
+                    setIsTextSelectionMode(false);
                     return;
+                }
             } else {
                 WebCore::IntRect leftRect;
                 WebCore::IntRect rightRect;