Fix key event propagation in text controller
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / text-controller-impl-event-handler.h
index 7399fdd..82e5c78 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_TEXT_CONTROLLER_IMPL_EVENT_HANDLER_H
 
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 
 namespace Dali
 {
-
 namespace Toolkit
 {
-
 namespace Text
 {
-
 /**
  * Contains all the event handling methods for Text::Controller::Impl
  */
@@ -89,7 +86,7 @@ struct ControllerImplEventHandler
    * @param controllerImpl A reference to Controller::Impl
    * @param event The event
    */
-  static void OnSelectEvent(Controller::Impl& controllerImpl, const Event& event );
+  static void OnSelectEvent(Controller::Impl& controllerImpl, const Event& event);
 
   /**
    * @brief Called by Controller::Impl when a select all event is received.
@@ -107,8 +104,15 @@ struct ControllerImplEventHandler
    */
   static void OnSelectNoneEvent(Controller::Impl& controllerImpl);
 
-private:
+  /**
+   * @brief Called by Controller::Impl when a select range event is received.
+   *
+   * @param controllerImpl A reference to Controller::Impl
+   * @param event The event
+   */
+  static void OnSelectRangeEvent(Controller::Impl& controllerImpl, const Event& event);
 
+private:
   /**
    * @brief Called by OnHandleEvent when we are in the Pressed state.
    *