elm_entry_single_line_set(entry, EINA_TRUE);
elm_entry_scrollable_set(entry, EINA_TRUE);
elm_entry_input_panel_enabled_set(entry, EINA_FALSE);
+ elm_object_color_class_color_set(entry, "cursor", 250, 250, 250, 255);
static Elm_Entry_Filter_Accept_Set filter = { "+*#;,1234567890", NULL };
elm_entry_markup_filter_append(entry, elm_entry_filter_accept_set, &filter);
eext_entry_selection_back_event_allow_set(entry, EINA_TRUE);
- evas_object_smart_callback_add(entry, "focused",
- &KeypadEntry::onFocused, this);
- evas_object_smart_callback_add(entry, "unfocused",
- &KeypadEntry::onUnfocused, this);
evas_object_smart_callback_add(entry, "changed",
makeCallback(&KeypadEntry::onChanged), this);
return entry;
updateFontSize();
}
-void KeypadEntry::onFocused(void *data, Evas_Object *obj, void *event_info)
-{
- edje_color_class_set("entry/default/cursor", 250, 250, 250, 255, 0, 0, 0, 0, 0, 0, 0, 0);
-}
-
-void KeypadEntry::onUnfocused(void *data, Evas_Object *obj, void *event_info)
-{
- edje_color_class_set("entry/default/cursor", 0, 184, 230, 110, 0, 0, 0, 0, 0, 0, 0, 0);
-}
-
void KeypadEntry::onChanged(Evas_Object *obj, void *event_info)
{
const char *text = elm_entry_entry_get(getEvasObject());