From: Victor Cebollada Date: Wed, 26 Aug 2020 08:42:06 +0000 (+0100) Subject: Fix build errors for MS-Windows after KeyEvent class pimpling patch. X-Git-Tag: dali_1.9.27~5^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=ec76e50dd21888a0049b003df0c2d3b4b6a257de Fix build errors for MS-Windows after KeyEvent class pimpling patch. Change-Id: I14db2cfdda393b034251a32d69abb27e091931c9 Signed-off-by: Victor Cebollada --- diff --git a/dali/internal/input/windows/input-method-context-impl-win.cpp b/dali/internal/input/windows/input-method-context-impl-win.cpp index b15c0dd..4accb32 100755 --- a/dali/internal/input/windows/input-method-context-impl-win.cpp +++ b/dali/internal/input/windows/input-method-context-impl-win.cpp @@ -342,11 +342,11 @@ bool InputMethodContextWin::FilterEventKey( const Dali::KeyEvent& keyEvent ) if ( ! KeyLookup::IsDeviceButton( keyEvent.GetKeyName().c_str() )) { //check whether it's key down or key up event - if ( keyEvent.state == Dali::KeyEvent::Down ) + if ( keyEvent.GetState() == Dali::KeyEvent::Down ) { eventHandled = ProcessEventKeyDown( keyEvent ); } - else if ( keyEvent.state == Dali::KeyEvent::Up ) + else if ( keyEvent.GetState() == Dali::KeyEvent::Up ) { eventHandled = ProcessEventKeyUp( keyEvent ); } @@ -377,13 +377,13 @@ void InputMethodContextWin::GetPreeditStyle( Dali::InputMethodContext::PreEditAt attrs = mPreeditAttrs; } -bool InputMethodContextWin::ProcessEventKeyDown( const KeyEvent& keyEvent ) +bool InputMethodContextWin::ProcessEventKeyDown( const Dali::KeyEvent& keyEvent ) { bool eventHandled( false ); return eventHandled; } -bool InputMethodContextWin::ProcessEventKeyUp( const KeyEvent& keyEvent ) +bool InputMethodContextWin::ProcessEventKeyUp( const Dali::KeyEvent& keyEvent ) { bool eventHandled( false ); return eventHandled; diff --git a/dali/internal/input/windows/input-method-context-impl-win.h b/dali/internal/input/windows/input-method-context-impl-win.h index 253bc02..58b91b3 100755 --- a/dali/internal/input/windows/input-method-context-impl-win.h +++ b/dali/internal/input/windows/input-method-context-impl-win.h @@ -281,7 +281,7 @@ private: * @param[in] keyEvent The event key to be handled. * @return Whether the event key is handled. */ - bool ProcessEventKeyDown( const KeyEvent& keyEvent ); + bool ProcessEventKeyDown( const Dali::KeyEvent& keyEvent ); /** * @brief Process event key up, whether filter a key to isf. @@ -289,7 +289,7 @@ private: * @param[in] keyEvent The event key to be handled. * @return Whether the event key is handled. */ - bool ProcessEventKeyUp( const KeyEvent& keyEvent ); + bool ProcessEventKeyUp( const Dali::KeyEvent& keyEvent ); /** * Called when the binded actor is added to a window.