#include "isf_wsc_control_ui.h"
#define ENABLE_BACKKEY 1
+#ifdef LOG_TAG
+# undef LOG_TAG
+#endif
+#define LOG_TAG "ISF_WSC_EFL"
+
using namespace scim;
struct _WSCContextISFImpl {
return (Ecore_IMF_Input_Hints)input_hint;
}
+Eina_Bool wsc_context_prediction_allow_get (weescim *ctx)
+{
+ if (!ctx)
+ return EINA_FALSE;
+
+ if (ctx->content_hint & WL_TEXT_INPUT_CONTENT_HINT_AUTO_COMPLETION)
+ return EINA_TRUE;
+ else
+ return EINA_FALSE;
+}
+
void wsc_context_delete_surrounding (weescim *ctx, int offset, int len)
{
if (!ctx)
Ecore_IMF_Input_Panel_Lang wsc_context_input_panel_language_get (weescim *ctx);
bool wsc_context_input_panel_password_mode_get (weescim *ctx);
Ecore_IMF_Input_Hints wsc_context_input_hint_get (weescim *ctx);
+Eina_Bool wsc_context_prediction_allow_get (weescim *ctx);
void wsc_context_commit_preedit_string(weescim *ctx);
void wsc_context_commit_string(weescim *ctx, const char *str);
void wsc_context_send_preedit_string(weescim *ctx);
#include "isf_wsc_control.h"
#include "ise_context.h"
+#ifdef LOG_TAG
+# undef LOG_TAG
+#endif
+#define LOG_TAG "ISF_WSC_EFL"
+
using namespace scim;
/* IM control related variables */
iseContext.layout_variation = 0;
/* set prediction allow */
- iseContext.prediction_allow = EINA_TRUE;
+ iseContext.prediction_allow = wsc_context_prediction_allow_get (ctx->ctx);
if (iseContext.layout == ECORE_IMF_INPUT_PANEL_LAYOUT_PASSWORD)
iseContext.password_mode = EINA_TRUE;