From 1dad011a3057b153c955bbe91541c91406f1328a Mon Sep 17 00:00:00 2001 From: Eunki Hong Date: Sat, 10 Dec 2022 20:31:16 +0900 Subject: [PATCH] [Tizen] Remove keylogging for security Remove keylogging action in tizen Change-Id: Ife872a70b61b10306ef04871b44062fbdee6a0c9 Signed-off-by: Eunki Hong --- .../ecore-wl2/window-base-ecore-wl2.cpp | 32 +++------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp index e7c868b..b405eac 100644 --- a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp +++ b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp @@ -1201,14 +1201,7 @@ void WindowBaseEcoreWl2::OnKeyDown(void* data, int type, void* event) std::string keyString(""); std::string compose(""); -#ifdef TRACE_ENABLED - std::ostringstream stream; - if(gTraceFilter->IsTraceEnabled()) - { - stream << "DALI_ON_KEY_DOWN [" << keyName << "]"; - DALI_TRACE_BEGIN(gTraceFilter, stream.str().c_str()); - } -#endif + DALI_TRACE_BEGIN(gTraceFilter, "DALI_ON_KEY_DOWN"); // Ensure key compose string is not NULL as keys like SHIFT or arrow have a null string. if(keyEvent->compose) @@ -1257,12 +1250,7 @@ void WindowBaseEcoreWl2::OnKeyDown(void* data, int type, void* event) mKeyEventSignal.Emit(keyEvent); -#ifdef TRACE_ENABLED - if(gTraceFilter->IsTraceEnabled()) - { - DALI_TRACE_END(gTraceFilter, stream.str().c_str()); - } -#endif + DALI_TRACE_END(gTraceFilter, "DALI_ON_KEY_DOWN"); } } @@ -1286,14 +1274,7 @@ void WindowBaseEcoreWl2::OnKeyUp(void* data, int type, void* event) std::string keyString(""); std::string compose(""); -#ifdef TRACE_ENABLED - std::ostringstream stream; - if(gTraceFilter->IsTraceEnabled()) - { - stream << "DALI_ON_KEY_UP [" << keyName << "]"; - DALI_TRACE_BEGIN(gTraceFilter, stream.str().c_str()); - } -#endif + DALI_TRACE_BEGIN(gTraceFilter, "DALI_ON_KEY_UP"); // Ensure key compose string is not NULL as keys like SHIFT or arrow have a null string. if(keyEvent->compose) @@ -1342,12 +1323,7 @@ void WindowBaseEcoreWl2::OnKeyUp(void* data, int type, void* event) mKeyEventSignal.Emit(keyEvent); -#ifdef TRACE_ENABLED - if(gTraceFilter->IsTraceEnabled()) - { - DALI_TRACE_END(gTraceFilter, stream.str().c_str()); - } -#endif + DALI_TRACE_END(gTraceFilter, "DALI_ON_KEY_UP"); } } -- 2.7.4