_ecore_imf_event_commit_cb(void *data, Ecore_IMF_Context *ctx EINA_UNUSED, void *event_info)
{
char *commit_str = (char *)event_info;
- SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "commit string : %s\n", commit_str);
SDL_SendKeyboardText(commit_str);
return;
}
// get preedit string and attributes
ecore_imf_context_preedit_string_with_attributes_get(imf_context, &preedit_string, NULL, &cursor_pos);
- SDL_Log("preedit string : %s, %d", preedit_string, cursor_pos);
SDL_SendEditingText(preedit_string, 0, cursor_pos);
free(preedit_string);
{
//ECORE_IMF_INPUT_PANEL_STATE_SHOW : 0
//ECORE_IMF_INPUT_PANEL_STATE_HIDE : 1
- SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "Keyboard State : %d\n", value);
return;
}
const char *default_id = ecore_imf_context_default_id_get();
if (!default_id)
{
- SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Can't create ecore_imf_context\n");
+ SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Can't create ecore_imf_context\n");
return;
}
SDL_Window *window;
if (!_this) {
- SDL_SetError("Video subsystem must be initialized");
+ SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Video subsystem must be initialized");
return;
}
window = SDL_GetKeyboardFocus();
if(!window){
- SDL_SetError("Keyboard focused window is NULL");
+ SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Keyboard focused window is NULL");
return;
}
Tizen_ShowScreenKeyboard(_this, window);