X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=blobdiff_plain;f=dali%2Finternal%2Finput%2Fubuntu-x11%2Finput-method-context-impl-x.cpp;h=3b7fcda9a9c75f9b103c5c6d8d5d08abf409d04b;hp=7afcf5aa08eace2eb63c8c16c01a54741d526cff;hb=b33cf8f8c44bc1be428692eba5859354c57f4d11;hpb=f23ea3c9f60c9327b921b4a3af4c2d7425f7f315 diff --git a/dali/internal/input/ubuntu-x11/input-method-context-impl-x.cpp b/dali/internal/input/ubuntu-x11/input-method-context-impl-x.cpp index 7afcf5a..3b7fcda 100755 --- a/dali/internal/input/ubuntu-x11/input-method-context-impl-x.cpp +++ b/dali/internal/input/ubuntu-x11/input-method-context-impl-x.cpp @@ -727,6 +727,27 @@ bool InputMethodContextX::FilterEventKey( const Dali::KeyEvent& keyEvent ) return eventHandled; } +void InputMethodContextX::AllowTextPrediction( bool prediction ) +{ + DALI_LOG_INFO( gLogFilter, Debug::General, "InputMethodContextX::AllowTextPrediction\n" ); + + if( mIMFContext ) + { + ecore_imf_context_prediction_allow_set( mIMFContext, prediction ); + } +} + +bool InputMethodContextX::IsTextPredictionAllowed() const +{ + DALI_LOG_INFO( gLogFilter, Debug::General, "InputMethodContextX::IsTextPredictionAllowed\n" ); + bool prediction = false; + if( mIMFContext ) + { + prediction = ecore_imf_context_prediction_allow_get( mIMFContext ); + } + return prediction; +} + bool InputMethodContextX::ProcessEventKeyDown( const KeyEvent& keyEvent ) { bool eventHandled( false );