From 1d6380923d1796dd6a9f4c22af3bfb632b28a699 Mon Sep 17 00:00:00 2001 From: Bartlomiej Gajda Date: Tue, 24 Feb 2015 14:37:54 +0100 Subject: [PATCH] Fix showing context menu on elements with style "-webkit-user-select:none". [Issue] Elements which are not selectable, should also not show context menu on long press. [Problem] Redundant showContextMenu() being called whenever LongPress ended. [Solution] Trigger context menu only when neccessary. [Requirment] WCS TC 49,50 [SPIN JIRA] TNEF-306 Reviewed by: Antonio Gomes, Jaesik Chang, Marcin Kolibabka, Piotr Grad Change-Id: I841075559f2a82b94d5b4e3ecbcd485b5e119553 Signed-off-by: Bartlomiej Gajda --- tizen_src/impl/selection_controller_efl.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/tizen_src/impl/selection_controller_efl.cc b/tizen_src/impl/selection_controller_efl.cc index c41fdd1..e18aba8 100644 --- a/tizen_src/impl/selection_controller_efl.cc +++ b/tizen_src/impl/selection_controller_efl.cc @@ -497,8 +497,6 @@ void SelectionControllerEfl::HandleLongPressEndEvent() { SetSelectionEditable(true); } ShowHandleAndContextMenuIfRequired(); - parent_view_->ShowContextMenu(*(selection_data_->GetContextMenuParams()), - MENU_TYPE_SELECTION); } void SelectionControllerEfl::HandleTapEvent( -- 2.7.4