SECURE_LOGD("input hint : %d\n", input_hint);
_isf_wsc_context_input_hint_set (_get_context_id(ctx), input_hint);
}
+
+void isf_wsc_context_input_panel_language_locale_get (WSCContextISF *ctx, char **locale)
+{
+ _isf_wsc_context_input_panel_language_locale_get (_get_context_id(ctx), locale);
+}
\ No newline at end of file
void isf_wsc_context_input_panel_finalize_content (WSCContextISF *ctx, const char *text, int cursor_pos);
void isf_wsc_context_input_panel_prediction_hint_data_set (WSCContextISF *ctx, const char *key, const char *value);
void isf_wsc_context_input_hint_set (WSCContextISF *ctx, Ecore_IMF_Input_Hints input_hint);
+ void isf_wsc_context_input_panel_language_locale_get (WSCContextISF *ctx, char **locale);
#ifdef __cplusplus
}
if (!_focused_ic || !_focused_ic->im_ctx)
return;
+ if (type == ECORE_IMF_INPUT_PANEL_LANGUAGE_EVENT) {
+ WSCContextISF* ic = find_ic (context);
+ if (ic) {
+ isf_wsc_context_input_panel_language_locale_get (_focused_ic, &(ic->language));
+ if (ic->language)
+ wl_input_method_context_language (_focused_ic->im_ctx, _focused_ic->serial, ic->language);
+ }
+ }
wl_input_method_context_input_panel_event (_focused_ic->im_ctx, _focused_ic->serial, type, value);
}