I have created an entry (on screen keyboard) for a wearable v4 app. I can type keys with the full keyboard onscreen but my text is behind the vkeyboard (if multiline is off), or partially cut off in the top left (if multiline is on).
If I click the back button on the watch (emulator), the keyboard dissappears but the text remains on screen. There is also an "ABC DEF" at the bottom of that window (only in the v5 emulator), or I just see a black background with my text vertically centered (on v4 emulator).
Shouldn't the BACK button remove the entire keyboard and return to the previous view on the naviframe? Can someone explain what is happening? I have posted my code below:
void _setting_name_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { appdata_s *ad = data; Evas_Object *naviframe = ad->naviframe; Elm_Object_Item *nf_it = NULL; /* Unhighlight Item */ elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); // Create a keyboard (entry) and add to naviframe Evas_Object *entry; entry = elm_entry_add(naviframe); elm_entry_entry_set(entry, "A short text."); // elm_entry_input_panel_layout_set(entry,ELM_INPUT_PANEL_LAYOUT_NUMBERONLY); elm_entry_input_panel_return_key_type_set (entry, ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE); elm_entry_autocapital_type_set (entry,ELM_AUTOCAPITAL_TYPE_WORD); // Add a filter for max 16 characters static Elm_Entry_Filter_Limit_Size limit_size = { .max_char_count = 16 }; elm_entry_markup_filter_append(entry, elm_entry_filter_limit_size, &limit_size); // Disable word wrap elm_entry_line_wrap_set(entry,ELM_WRAP_NONE); elm_entry_single_line_set(entry, EINA_TRUE); // Push the entry onto the naviframe to show it nf_it = elm_naviframe_item_push(naviframe, _("Slider"), NULL, NULL, entry, "empty"); // nf_it = elm_naviframe_item_push(naviframe, _(""), NULL, NULL, entry, "empty"); // Set the callback of the naviframe when layout popped off elm_naviframe_item_pop_cb_set(nf_it, _setting_name_finished_cb, ad); }