Fix showing context menu on elements with style "-webkit-user-select:none".
authorBartlomiej Gajda <b.gajda@samsung.com>
Tue, 24 Feb 2015 13:37:54 +0000 (14:37 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
[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 <b.gajda@samsung.com>
tizen_src/impl/selection_controller_efl.cc

index c41fdd1..e18aba8 100644 (file)
@@ -497,8 +497,6 @@ void SelectionControllerEfl::HandleLongPressEndEvent() {
     SetSelectionEditable(true);
   }
   ShowHandleAndContextMenuIfRequired();
-  parent_view_->ShowContextMenu(*(selection_data_->GetContextMenuParams()),
-      MENU_TYPE_SELECTION);
 }
 
 void SelectionControllerEfl::HandleTapEvent(