From de3eeac76074ae55de7a795e519d80a628c11628 Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Thu, 16 Mar 2017 16:56:08 +0000 Subject: [PATCH] Change the double tap and long press events on top of no text actions to highlight. Change-Id: If7ca9010bb86857cb89f4d64be73878510801bfb Signed-off-by: Victor Cebollada --- dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp | 3 +++ dali-toolkit/internal/controls/text-controls/text-field-impl.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp index 5e2de42..fc86c7e 100644 --- a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp @@ -1037,6 +1037,9 @@ void TextEditor::OnInitialize() // Enable the smooth handle panning. mController->SetSmoothHandlePanEnabled( true ); + mController->SetNoTextDoubleTapAction( Controller::NoTextTap::HIGHLIGHT ); + mController->SetNoTextLongPressAction( Controller::NoTextTap::HIGHLIGHT ); + // Forward input events to controller EnableGestureDetection( static_cast( Gesture::Tap | Gesture::Pan | Gesture::LongPress ) ); GetTapGestureDetector().SetMaximumTapsRequired( 2 ); diff --git a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp index 240dfde..bafa08e 100644 --- a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp @@ -1162,8 +1162,8 @@ void TextField::OnInitialize() // Disable the smooth handle panning. mController->SetSmoothHandlePanEnabled( false ); - mController->SetNoTextDoubleTapAction( Controller::NoTextTap::NO_ACTION ); - mController->SetNoTextLongPressAction( Controller::NoTextTap::SHOW_SELECTION_POPUP ); + mController->SetNoTextDoubleTapAction( Controller::NoTextTap::HIGHLIGHT ); + mController->SetNoTextLongPressAction( Controller::NoTextTap::HIGHLIGHT ); // Forward input events to controller EnableGestureDetection( static_cast( Gesture::Tap | Gesture::Pan | Gesture::LongPress ) ); -- 2.7.4