Don't hide CBHM window when screen rotated while Host keyboard on.
authorTaeyun An <ty.an@samsung.com>
Tue, 14 May 2013 11:16:23 +0000 (20:16 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 14 May 2013 11:40:23 +0000 (20:40 +0900)
[Title] Don't hide CBHM window when screen rotated while Host keyboard on.
[Issue#] N_SE-37944
[Problem] Clipboard getting disappear after rotate the emulator when Host Keyboard ON.
[Cause] When display is rotating while Host Keyboard on updateHandlesAndContextMenu() method should not be invoked.
[Solution] Check the clipboard status if clipboard is opened then early return when display is rotating while Host Keyboard on.

Change-Id: I6d3688da7d0b162ccc9fec60c28cd7b65343e92f

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

index 3788049..33dae6a 100755 (executable)
@@ -419,6 +419,10 @@ void TextSelection::updateHandlesAndContextMenu(bool isShow, bool isScrolling)
     }
 
     if (isShow) {
+#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
+        if (m_viewImpl->pageClient->isClipboardWindowOpened())
+            return;
+#endif
         if (m_viewImpl->gestureClient->isGestureWorking())
             return;