{
DisconnectCallbacks();
DeleteContext();
- ecore_imf_shutdown();
mInited = false;
}
}
if ( ( imfManager != NULL ) && !imfManager->mInited )
{
- ecore_imf_init();
+ imfManager->SetDefaultOptions();
imfManager->CreateContext( imfManager->mEcoreWlwin );
-
imfManager->ConnectCallbacks();
imfManager->mInited = true;
}
mRestoreAfterFocusLost( false ),
mIdleCallbackConnected( false )
{
+ ecore_imf_init();
}
ImfManager::~ImfManager()
{
Finalize();
+ ecore_imf_shutdown();
}
void ImfManager::CreateContext( Ecore_Wl_Window *ecoreWlwin )
}
}
+void ImfManager::SetDefaultOptions()
+{
+ DALI_LOG_INFO( gLogFilter, Debug::General, "ImfManager::SetDefaultOptions\n" );
+ Property::Map map;
+ map.Insert( "PANEL_LAYOUT", InputMethod::PanelLayout::NORMAL );
+ map.Insert( "AUTO_CAPITALISE", InputMethod::AutoCapital::SENTENCE );
+ map.Insert( "ACTION_BUTTON", InputMethod::ActionButtonTitle::DEFAULT );
+ map.Insert( "VARIATION", InputMethod::NormalLayout::NORMAL );
+ mOptions.ApplyProperty( map );
+}
+
// Callbacks for predicitive text support.
void ImfManager::ConnectCallbacks()
{
void ImfManager::ApplyOptions( const InputMethodOptions& options )
{
using namespace Dali::InputMethod::Category;
-
int index;
if (mIMFContext == NULL)