fixed bug
authorChulheon <ch.jeong47@samsung.com>
Thu, 12 Sep 2013 00:52:39 +0000 (09:52 +0900)
committerChulheon <ch.jeong47@samsung.com>
Thu, 12 Sep 2013 00:52:39 +0000 (09:52 +0900)
Change-Id: I1c3c0d270e204636dc283ce8f401de1bf06db1d3

src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp
src/ui/controls/FUiCtrl_EditPresenter.cpp

index 4ae2337..c4cab3b 100644 (file)
@@ -2089,16 +2089,10 @@ _EditCopyPasteManager::CreateCopyPastePopup(void)
                {
                        String copyText;
                        String cutText;
-                       String selectAllText;
 
                        GET_STRING_CONFIG(IDS_TPLATFORM_OPT_COPY, copyText);
                        GET_STRING_CONFIG(IDS_TPLATFORM_OPT_CUT, cutText);
-                       GET_STRING_CONFIG(IDS_TPLATFORM_OPT_SELECT_ALL, selectAllText);
 
-                       if (__pEditPresenter->IsViewModeEnabled())
-                       {
-                               __pCopyPastePopup->AddItem(selectAllText, COPY_PASTE_SELECT_ALL_ID, null, null, null);
-                       }
                        __pCopyPastePopup->AddItem(copyText, COPY_PASTE_COPY_ID, null, null, null);
                        if (!__pEditPresenter->IsViewModeEnabled())
                        {
index 1b1d432..5800c96 100644 (file)
@@ -3423,32 +3423,6 @@ _EditPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touchI
                                __pEdit->SetFocused();
                        }
 
-                       if (GetTextLength() > 0 && __pEdit->IsViewModeEnabled())
-                       {
-                               FloatRectangle cursorBounds;
-                               int start = -1;
-                               int end = -1;
-                               int cursorPos = GetCursorPositionAt(touchInfo.GetCurrentPosition());
-
-                               if (cursorPos == -1)
-                               {
-                                       cursorPos = __cursorPos;
-                               }
-                               else
-                               {
-                                       int curCursorLine = __pTextObject->GetLineIndexAtTextIndex(cursorPos);
-                                       int firstTextIndex = __pTextObject->GetFirstTextIndexAt(curCursorLine);
-                                       if (cursorPos != 0 && cursorPos == firstTextIndex && __rowCursorIndex != curCursorLine)
-                                       {
-                                               cursorPos--;
-                                       }
-                               }
-
-                               GetWordPosition(cursorPos, start, end);
-                               SetBlockRange(start, end);
-                               __pCopyPasteManager->CreateHandle();
-                       }
-
                        FadeOutScrollBar(); // Fade out scrollbar when copypaste popup is moving.
                        if (__needToCreateCopyPastePopup)
                        {