iseContext.return_key_type = (Ecore_IMF_Input_Panel_Return_Key_Type)ctx->ctx->return_key_type;
/* set return key disabled */
- iseContext.return_key_disabled = EINA_FALSE;
+ iseContext.return_key_disabled = ctx->ctx->return_key_disabled;
/* set caps mode */
iseContext.caps_mode = caps_mode_check (ctx, EINA_TRUE, EINA_FALSE);
_isf_wsc_context_init ();
return iseContext.language;
}
+
+void isf_wsc_context_input_panel_return_key_disabled_set (WSCContextISF *ctx, Eina_Bool disabled)
+{
+ if (!IfInitContext)
+ _isf_wsc_context_init ();
+ LOGD ("ctx : %p, disabled : %d\n", ctx, disabled);
+ _isf_wsc_context_input_panel_return_key_disabled_set (_get_context_id (ctx), disabled);
+}
void isf_wsc_context_input_panel_caps_mode_set (WSCContextISF *ctx, unsigned int mode);
void isf_wsc_context_input_panel_caps_lock_mode_set (WSCContextISF *ctx, Eina_Bool mode);
void isf_wsc_context_set_keyboard_mode (WSCContextISF *ctx, scim::TOOLBAR_MODE_T mode);
+ void isf_wsc_context_input_panel_return_key_disabled_set (WSCContextISF *ctx, Eina_Bool disabled);
#ifdef __cplusplus
}
LOGD ("im_context = %p return key type = %d", im_ctx, return_key_type);
if (!wsc || !wsc->wsc_ctx) return;
- wsc->return_key_type = return_key_type;
+ if (wsc->return_key_type != return_key_type) {
+ wsc->return_key_type = return_key_type;
+ isf_wsc_context_input_panel_show (wsc->wsc_ctx);
+ }
+}
- isf_wsc_context_input_panel_show (wsc->wsc_ctx);
+static void
+_wsc_im_ctx_return_key_disabled(void *data, struct wl_input_method_context *im_ctx, uint32_t disabled)
+{
+ struct weescim *wsc = (weescim*)data;
+ Eina_Bool return_key_disabled = !!disabled;
+
+ LOGD ("im_context = %p return key disabled = %d", im_ctx, return_key_disabled);
+ if (!wsc || !wsc->wsc_ctx) return;
+
+ if (wsc->return_key_disabled != return_key_disabled) {
+ wsc->return_key_disabled = return_key_disabled;
+ isf_wsc_context_input_panel_return_key_disabled_set (wsc->wsc_ctx, wsc->return_key_disabled);
+ }
}
static const struct wl_input_method_context_listener wsc_im_context_listener = {
_wsc_im_ctx_commit_state,
_wsc_im_ctx_preferred_language,
_wsc_im_ctx_return_key_type,
+ _wsc_im_ctx_return_key_disabled
};
static void