elc_multibuttonentry: input panel should be shown whenever mbe is clicked.
authorWoochan Lee <wc0917.lee@samsung.com>
Wed, 15 Feb 2017 04:06:49 +0000 (13:06 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 15 Feb 2017 04:06:49 +0000 (13:06 +0900)
Summary:
When mbe got focus the input panel will be shown.
Otherwise, input panel will be hidden.

If the mbe still got focus then input panel hide by user action.
there is no way to reactivate the input panel in case.

Reviewers: woohyun, jpeg, cedric, Hermet

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4661

src/lib/elementary/elc_multibuttonentry.c

index 2ab94b7..729fa41 100644 (file)
@@ -990,6 +990,10 @@ _mouse_clicked_signal_cb(void *data EINA_UNUSED,
                          const char *emission EINA_UNUSED,
                          const char *source EINA_UNUSED)
 {
+   ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(obj, sd);
+
+   if (sd->editable) elm_entry_input_panel_show(sd->entry);
+
    efl_event_callback_legacy_call(obj, EFL_UI_EVENT_CLICKED, NULL);
 }