const char *default_id = ecore_imf_context_default_id_get();
if (!default_id)
- {
- SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Can't create ecore_imf_context\n");
- return;
- }
+ {
+ SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Can't create ecore_imf_context\n");
+ return;
+ }
tizen_keyboard.imf_context = ecore_imf_context_add(default_id);
ecore_imf_context_client_window_set(tizen_keyboard.imf_context, (void*)wind->id);
ecore_imf_context_event_callback_add(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_COMMIT , _ecore_imf_event_commit_cb, NULL);
-
ecore_imf_context_event_callback_add(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, _ecore_imf_event_preedit_changed_cb, NULL);
-
ecore_imf_context_input_panel_event_callback_add (tizen_keyboard.imf_context, ECORE_IMF_INPUT_PANEL_STATE_EVENT, _ecore_imf_event_state_change_cb, NULL);
ecore_imf_context_cursor_position_set(tizen_keyboard.imf_context, 0);
if(tizen_keyboard.imf_context == NULL)
return;
+ ecore_imf_context_event_callback_del(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_COMMIT, _ecore_imf_event_commit_cb);
+ ecore_imf_context_event_callback_del(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, _ecore_imf_event_preedit_changed_cb);
+ ecore_imf_context_input_panel_event_callback_del(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, _ecore_imf_event_preedit_changed_cb);
+
ecore_imf_context_del(tizen_keyboard.imf_context);
tizen_keyboard.imf_context = NULL;
Tizen_ShowScreenKeyboard(_this, window);
}
-
void
Tizen_StopTextInput(_THIS)
{
{
}
-
SDL_bool
Tizen_HasScreenKeyboardSupport(_THIS)
{
return SDL_TRUE;
}
-
void
Tizen_ShowScreenKeyboard(_THIS, SDL_Window * window)
{