{
if ( data )
{
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
inputMethodContext->CommitReceived( data, imfContext, eventInfo );
}
}
{
if ( data )
{
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
inputMethodContext->PreEditChanged( data, imfContext, eventInfo );
}
}
{
if ( data )
{
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
return inputMethodContext->RetrieveSurrounding( data, imfContext, text, cursorPosition );
}
else
{
return;
}
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
switch (value)
{
case ECORE_IMF_INPUT_PANEL_STATE_SHOW:
{
return;
}
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
// Emit the signal that the language has changed
inputMethodContext->LanguageChangedSignal().Emit(value);
}
{
return;
}
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
// Emit signal that the keyboard is resized
inputMethodContext->ResizedSignal().Emit(value);
}
return;
}
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
switch (value)
{
case ECORE_IMF_INPUT_PANEL_SW_KEYBOARD_MODE:
{
if ( data )
{
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
inputMethodContext->DeleteSurrounding( data, imfContext, eventInfo );
}
}
{
if ( data )
{
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
inputMethodContext->SendPrivateCommand( data, imfContext, eventInfo );
}
}
{
if ( data )
{
- InputMethodContextEcoreWl* inputMethodContext = reinterpret_cast< InputMethodContextEcoreWl* > ( data );
+ InputMethodContextEcoreWl* inputMethodContext = static_cast< InputMethodContextEcoreWl* >( data );
inputMethodContext->SendCommitContent( data, imfContext, eventInfo );
}
}
void InputMethodContextEcoreWl::PreEditChanged( void*, ImfContext* imfContext, void* eventInfo )
{
DALI_LOG_INFO( gLogFilter, Debug::General, "InputMethodContextEcoreWl::PreEditChanged\n" );
- auto context = reinterpret_cast<Ecore_IMF_Context*>(imfContext);
+ auto context = static_cast<Ecore_IMF_Context*>( imfContext );
char* preEditString( NULL );
int cursorPosition( 0 );
{
if( text )
{
+ const char* plainText = callbackData.currentText.c_str();
+ if( plainText )
+ {
+ // If the current input panel is password mode, dali should replace the plain text with '*' (Asterisk) character.
+ if( ecore_imf_context_input_hint_get( mIMFContext ) & ECORE_IMF_INPUT_HINT_SENSITIVE_DATA )
+ {
+ char* iter = NULL;
+ for( iter = const_cast<char*>( plainText ); iter && *iter; ++iter )
+ {
+ *iter = '*';
+ }
+ }
+ }
// The memory allocated by strdup() can be freed by ecore_imf_context_surrounding_get() internally.
- *text = strdup( callbackData.currentText.c_str() );
+ *text = strdup( plainText );
}
if( cursorPosition )
{
if ( data )
{
- InputMethodContextX* inputMethodContext = reinterpret_cast< InputMethodContextX* > ( data );
+ InputMethodContextX* inputMethodContext = static_cast< InputMethodContextX* >( data );
inputMethodContext->CommitReceived( data, imfContext, eventInfo );
}
}
{
if ( data )
{
- InputMethodContextX* inputMethodContext = reinterpret_cast< InputMethodContextX* > ( data );
+ InputMethodContextX* inputMethodContext = static_cast< InputMethodContextX* >( data );
inputMethodContext->PreEditChanged( data, imfContext, eventInfo );
}
}
{
if ( data )
{
- InputMethodContextX* inputMethodContext = reinterpret_cast< InputMethodContextX* > ( data );
+ InputMethodContextX* inputMethodContext = static_cast< InputMethodContextX* >( data );
return inputMethodContext->RetrieveSurrounding( data, imfContext, text, cursorPosition );
}
else
{
if ( data )
{
- InputMethodContextX* inputMethodContext = reinterpret_cast< InputMethodContextX* > ( data );
+ InputMethodContextX* inputMethodContext = static_cast< InputMethodContextX* >( data );
inputMethodContext->DeleteSurrounding( data, imfContext, eventInfo );
}
}
void InputMethodContextX::PreEditChanged( void*, ImfContext* imfContext, void* eventInfo )
{
DALI_LOG_INFO( gLogFilter, Debug::General, "InputMethodContextX::PreEditChanged\n" );
- auto context = reinterpret_cast<Ecore_IMF_Context*>(imfContext);
+ auto context = static_cast<Ecore_IMF_Context*>( imfContext );
char* preEditString( NULL );
int cursorPosition( 0 );