if (ctx->input_hints != input_hints)
{
+ if (input_hints & ECORE_IMF_INPUT_HINT_AUTO_COMPLETE)
+ ctx->allow_prediction = EINA_TRUE;
+ else
+ ctx->allow_prediction = EINA_FALSE;
+
if (ctx->klass && ctx->klass->input_hint_set)
ctx->klass->input_hint_set(ctx, input_hints);
_elm_entry_prediction_allow_set(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd, Eina_Bool prediction)
{
sd->prediction_allow = prediction;
+
+ if (prediction == EINA_FALSE)
+ sd->input_hints &= ~ELM_INPUT_HINT_AUTO_COMPLETE;
+ else
+ sd->input_hints |= ELM_INPUT_HINT_AUTO_COMPLETE;
+
edje_object_part_text_prediction_allow_set
(sd->entry_edje, "elm.text", prediction);
}
{
sd->input_hints = hints;
+ if (hints & ELM_INPUT_HINT_AUTO_COMPLETE)
+ sd->prediction_allow = EINA_TRUE;
+ else
+ sd->prediction_allow = EINA_FALSE;
+
edje_object_part_text_input_hint_set
(sd->entry_edje, "elm.text", (Edje_Input_Hints)hints);
}