if (state == ECORE_X_ILLUME_CLIPBOARD_STATE_OFF)
{
+ // Tizen Only - SIP regions for virtual keypad and clipboard are the same in Tizen
+ edje_object_signal_emit(ELM_WIDGET_DATA(sd)->resize_obj, "elm,state,clipboard,off", "elm");
evas_object_size_hint_min_set(sd->clipboard, -1, 0);
evas_object_size_hint_max_set(sd->clipboard, -1, 0);
// Tizen Only - SIP regions for virtual keypad and clipboard are the same in Tizen
{
elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_COMPRESS);
_autoscroll_objects_update(obj);
+ // Tizen Only - SIP regions for virtual keypad and clipboard are the same in Tizen
+ edje_object_signal_emit(ELM_WIDGET_DATA(sd)->resize_obj, "elm,state,clipboard,on", "elm");
evas_object_smart_callback_call(obj, SIG_CLIPBOARD_STATE_ON, NULL);
}
}
_smart_interfaces);
static Eina_List *entries = NULL;
-// TIZEN ONLY
-static Evas_Object *cnpwidgetdata = NULL;
-//
struct _Mod_Api
{
elm_object_scroll_freeze_pop(data);
}
-static void
-_cnpinit(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
-{
- cnpwidgetdata = data;
-}
-
#ifdef HAVE_ELEMENTARY_X
static Ecore_X_Window
_cbhm_window_get()
{
if (elm_object_focus_get(obj) == EINA_TRUE)
{
- _cnpinit(obj, NULL, NULL);
ecore_x_selection_secondary_set(elm_win_xwindow_get(data), "", 1);
if (sd->cnp_mode != ELM_CNP_MODE_MARKUP)
_cbhm_msg_send(data, "show1");
}
}
- else if (!strcmp("INIT_CNPDATA", ev->data.b))
- {
- if (cnpwidgetdata == data)
- _cnpinit(NULL, NULL, NULL);
- }
#endif
return ECORE_CALLBACK_PASS_ON;
}
ext_mod->have_selection = sd->have_selection;
ext_mod->password = sd->password;
ext_mod->selmode = sd->sel_mode;
- ext_mod->cnpinit = _cnpinit;
ext_mod->context_menu = sd->context_menu;
ext_mod->cnp_mode = sd->cnp_mode;
ext_mod->viewport_rect = _viewport_region_get(obj);
else
{
printf("[Elm_entry::Unfocused] obj : %p\n", obj); // TIZEN ONLY
+ _cbhm_msg_send(obj, "cbhm_hide"); // TIZEN ONLY : Hide clipboard
edje_object_signal_emit(sd->entry_edje, "elm,action,unfocus", "elm");
evas_object_focus_set(sd->entry_edje, EINA_FALSE);
// TIZEN ONLY
// TIZEN ONLY
#ifdef HAVE_ELEMENTARY_X
- if (cnpwidgetdata == obj)
- ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
+ if (elm_widget_focus_get(obj))
+ ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
#endif
//
}
return ECORE_CALLBACK_PASS_ON;
}
- if (cnpwidgetdata == data)
+ if (elm_widget_focus_get(data))
{
ELM_ENTRY_DATA_GET(data, sd);
Elm_Sel_Format formats = ELM_SEL_FORMAT_MARKUP;
edje_object_part_text_insert(sd->entry_edje, "elm.text", entry);
// TIZEN ONLY
#ifdef HAVE_ELEMENTARY_X
- if (cnpwidgetdata == obj)
+ if (elm_widget_focus_get(obj))
ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
#endif
///////////
// start for cbhm
#ifdef HAVE_ELEMENTARY_X
ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
- ext_mod->cnpinit(data, NULL, NULL);
#endif
if (ext_mod->cnp_mode != ELM_CNP_MODE_MARKUP)
- _cbhm_msg_send(obj, "show0");
+ _cbhm_msg_send(data, "show0");
else
- _cbhm_msg_send(obj, "show1");
+ _cbhm_msg_send(data, "show1");
_ctxpopup_hide(obj);
// end for cbhm
}