From 96a57e4b8bfd54873f62880bc0a1b2c4131cd1bd Mon Sep 17 00:00:00 2001 From: Sanghyup Lee Date: Tue, 8 Dec 2015 22:42:39 +0900 Subject: [PATCH] When selection is cleared, context menu also should be cleared. When |ewk_view_text_selection_clear| is called, context menu is still shown although selection was already cleared. This patch clear context menu in |EWebView::ClearSelection|. Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=15223 Reviewed by: a1.gomes, sns.park Change-Id: Ib07dcf92777f49206bd899fa14934cf27e4c1364 Signed-off-by: Sanghyup Lee --- tizen_src/ewk/efl_integration/eweb_view.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/tizen_src/ewk/efl_integration/eweb_view.cc b/tizen_src/ewk/efl_integration/eweb_view.cc index 18e654d..4e4728d 100644 --- a/tizen_src/ewk/efl_integration/eweb_view.cc +++ b/tizen_src/ewk/efl_integration/eweb_view.cc @@ -1327,6 +1327,7 @@ Eina_Bool EWebView::ClearSelection() { if (!rwhv()) return EINA_FALSE; + ResetContextMenuController(); rwhv()->SelectionChanged(base::string16(), 0, gfx::Range()); return GetSelectionController()->ClearSelectionViaEWebView() ? EINA_TRUE : EINA_FALSE; } -- 2.7.4