Revert "[Tizen] Add KeyEventGeneratedSignal for Get KeyEvent normally"
authorWonsik Jung <sidein@samsung.com>
Mon, 1 Jul 2019 05:09:49 +0000 (14:09 +0900)
committerWonsik Jung <sidein@samsung.com>
Mon, 1 Jul 2019 05:09:49 +0000 (14:09 +0900)
This reverts commit fc951a17911f4d771ea7fa19c9bb18f98134be34.

dali/integration-api/scene.cpp
dali/integration-api/scene.h
dali/internal/event/common/scene-impl.cpp
dali/internal/event/common/scene-impl.h
dali/internal/event/events/key-event-processor.cpp

index 9331a99..b2a4922 100644 (file)
@@ -159,11 +159,6 @@ Scene::KeyEventSignalType& Scene::KeyEventSignal()
   return GetImplementation(*this).KeyEventSignal();
 }
 
-Scene::KeyEventGeneratedSignalType& Scene::KeyEventGeneratedSignal()
-{
-  return GetImplementation(*this).KeyEventGeneratedSignal();
-}
-
 Scene::TouchSignalType& Scene::TouchSignal()
 {
   return GetImplementation(*this).TouchSignal();
index 1d82a44..2128b47 100755 (executable)
@@ -55,7 +55,6 @@ class DALI_CORE_API Scene : public BaseHandle
 public:
   typedef Signal< void () > EventProcessingFinishedSignalType; ///< Event Processing finished signal type
   typedef Signal< void (const Dali::KeyEvent&) > KeyEventSignalType; ///< Key event signal type
-  typedef Signal< bool (const Dali::KeyEvent&) > KeyEventGeneratedSignalType; ///< key event generated signal type
   typedef Signal< void (const Dali::TouchData&) > TouchSignalType; ///< Touch signal type
   typedef Signal< void (const Dali::WheelEvent&) > WheelEventSignalType; ///< Touched signal type
 
@@ -250,13 +249,6 @@ public:
   KeyEventSignalType& KeyEventSignal();
 
   /**
-   * @brief The user would connect to this signal to get a KeyEvent when KeyEvent is generated.
-   *
-   * @return The return is true if KeyEvent is consumed, otherwise false.
-   */
-  KeyEventGeneratedSignalType& KeyEventGeneratedSignal();
-
-  /**
    * @brief This signal is emitted when the screen is touched and when the touch ends
    * (i.e. the down & up touch events only).
    *
index b30aa0c..a944d35 100644 (file)
@@ -307,12 +307,6 @@ void Scene::EmitKeyEventSignal(const KeyEvent& event)
   mKeyEventSignal.Emit( event );
 }
 
-bool Scene::EmitKeyEventGeneratedSignal(const KeyEvent& event)
-{
-  // Emit the KeyEventGenerated signal when KeyEvent is generated
-  return mKeyEventGeneratedSignal.Emit( event );
-}
-
 void Scene::EmitEventProcessingFinishedSignal()
 {
   mEventProcessingFinishedSignal.Emit();
@@ -334,11 +328,6 @@ Integration::Scene::KeyEventSignalType& Scene::KeyEventSignal()
   return mKeyEventSignal;
 }
 
-Integration::Scene::KeyEventGeneratedSignalType& Scene::KeyEventGeneratedSignal()
-{
-  return mKeyEventGeneratedSignal;
-}
-
 Integration::Scene::EventProcessingFinishedSignalType& Scene::EventProcessingFinishedSignal()
 {
   return mEventProcessingFinishedSignal;
index 166ef09..fb09efd 100644 (file)
@@ -182,13 +182,6 @@ public:
   void EmitKeyEventSignal(const KeyEvent& event);
 
   /**
-   * Used by the KeyEventProcessor to emit KeyEventGenerated signals.
-   * @param[in] event The key event.
-   * @return The return is true if KeyEvent is consumed, otherwise false.
-   */
-  bool EmitKeyEventGeneratedSignal(const KeyEvent& event);
-
-  /**
    * Emits the event processing finished signal.
    *
    * @see Dali::Scene::SignalEventProcessingFinished()
@@ -213,11 +206,6 @@ public:
    */
   Integration::Scene::KeyEventSignalType& KeyEventSignal();
 
-    /**
-   * @copydoc Integration::Scene::KeyEventGeneratedSignal()
-   */
-  Integration::Scene::KeyEventGeneratedSignalType& KeyEventGeneratedSignal();
-
   /**
    * @copydoc Integration::Scene::SignalEventProcessingFinished()
    */
@@ -301,7 +289,6 @@ private:
 
   // The key event signal
   Integration::Scene::KeyEventSignalType mKeyEventSignal;
-  Integration::Scene::KeyEventGeneratedSignalType   mKeyEventGeneratedSignal;
 
   // The event processing finished signal
   Integration::Scene::EventProcessingFinishedSignalType mEventProcessingFinishedSignal;
index 3d9ef47..399c209 100755 (executable)
@@ -25,7 +25,6 @@
 #include <dali/internal/event/common/scene-impl.h>
 #include <dali/integration-api/events/key-event-integ.h>
 
-
 namespace Dali
 {
 
@@ -51,12 +50,7 @@ void KeyEventProcessor::ProcessKeyEvent( const Integration::KeyEvent& event )
   GetImplementation( &keyEvent )->SetDeviceSubclass( event.deviceSubclass );
 
   // Emit the key event signal from the scene.
-  bool consumed = mScene.EmitKeyEventGeneratedSignal( keyEvent );
-  if( !consumed )
-  {
-    mScene.EmitKeyEventSignal(keyEvent);
-  }
-
+  mScene.EmitKeyEventSignal( keyEvent );
 }
 
 } // namespace Internal