(sd->entry_edje, "elm.text", (Edje_Text_Autocapital_Type)sd->autocapital_type);
edje_object_part_text_prediction_allow_set
(sd->entry_edje, "elm.text", sd->prediction_allow);
+ edje_object_part_text_input_hint_set
+ (sd->entry_edje, "elm.text", sd->input_hints);
edje_object_part_text_input_panel_enabled_set
(sd->entry_edje, "elm.text", sd->input_panel_enable);
edje_object_part_text_input_panel_imdata_set
elm_entry_input_panel_layout_set(obj, ELM_INPUT_PANEL_LAYOUT_NORMAL);
elm_entry_input_panel_enabled_set(obj, EINA_TRUE);
elm_entry_prediction_allow_set(obj, EINA_TRUE);
+ elm_entry_input_hint_set(obj, ELM_INPUT_HINT_AUTO_COMPLETE);
priv->autocapital_type = (Elm_Autocapital_Type)edje_object_part_text_autocapital_type_get
(priv->entry_edje, "elm.text");
{
sd->single_line = EINA_TRUE;
sd->line_wrap = ELM_WRAP_NONE;
+ elm_entry_input_hint_set(obj, ((sd->input_hints & ~ELM_INPUT_HINT_AUTO_COMPLETE) | ELM_INPUT_HINT_SENSITIVE_DATA));
_entry_selection_callbacks_unregister(obj);
}
else
NULL, NULL,
_drag_drop_cb, NULL);
+ elm_entry_input_hint_set(obj, ((sd->input_hints | ELM_INPUT_HINT_AUTO_COMPLETE) & ~ELM_INPUT_HINT_SENSITIVE_DATA));
_entry_selection_callbacks_register(obj);
}
edje_object_part_text_input_panel_layout_set
(sd->entry_edje, "elm.text", (Edje_Input_Panel_Layout)layout);
+
+ if (layout == ELM_INPUT_PANEL_LAYOUT_PASSWORD)
+ elm_entry_input_hint_set(obj, ((sd->input_hints & ~ELM_INPUT_HINT_AUTO_COMPLETE) | ELM_INPUT_HINT_SENSITIVE_DATA));
+ else if (layout == ELM_INPUT_PANEL_LAYOUT_TERMINAL)
+ elm_entry_input_hint_set(obj, (sd->input_hints & ~ELM_INPUT_HINT_AUTO_COMPLETE));
}
EOLIAN static Elm_Input_Panel_Layout
}
EOLIAN static void
+_elm_entry_input_hint_set(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd, Elm_Input_Hints hints)
+{
+ sd->input_hints = hints;
+
+ edje_object_part_text_input_hint_set
+ (sd->entry_edje, "elm.text", hints);
+}
+
+EOLIAN static Elm_Input_Hints
+_elm_entry_input_hint_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
+{
+ return sd->input_hints;
+}
+
+EOLIAN static void
_elm_entry_imf_context_reset(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
{
edje_object_part_text_imf_context_reset(sd->entry_edje, "elm.text");
} Elm_Input_Panel_Return_Key_Type;
/**
+ * @typedef Elm_Input_Hints
+ * @brief Enumeration that defines the types of Input Hints.
+ * @since 1.12
+ */
+typedef enum
+{
+ ELM_INPUT_HINT_NONE = 0, /**< No active hints @since 1.12 */
+ ELM_INPUT_HINT_AUTO_COMPLETE = 1 << 0, /**< suggest word auto completion @since 1.12 */
+ ELM_INPUT_HINT_SENSITIVE_DATA = 1 << 1, /**< typed text should not be stored. @since 1.12 */
+} Elm_Input_Hints;
+
+/**
* @typedef Elm_Entry_Anchor_Info
*
* The info sent in the callback for the "anchor,clicked" signals emitted