entry: fix problem "longpressed" signal doesn't occur when entry has not focus 52/91252/2
authorJinYong Park <j4939.park@samsung.com>
Thu, 6 Oct 2016 11:18:56 +0000 (20:18 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 7 Oct 2016 07:47:19 +0000 (00:47 -0700)
Change-Id: I1dc5f9d8416e60aaacaf84bb60364bd273d9cf2c
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
src/lib/elm_entry.c

index 714e036..250a906 100644 (file)
@@ -2842,8 +2842,7 @@ _long_press_cb(void *data)
    // TIZEN ONLY: START ////////////////////////////////////////////
    if (!elm_widget_focus_get(data))
      {
-        sd->longpress_timer = NULL;
-        return ECORE_CALLBACK_CANCEL;
+        goto signal_longpress;
      }
    // 20150229: Add drag feature.
    Eina_Bool hit_selection = EINA_FALSE;
@@ -2949,6 +2948,10 @@ _long_press_cb(void *data)
 
    //sd->long_pressed = EINA_TRUE;
 
+//TIZEN_ONLY: fix problem 'longpress' signal doesn't occur when entry has not focus
+signal_longpress:
+//
+
    sd->longpress_timer = NULL;
    eo_do(data, eo_event_callback_call
      (EVAS_CLICKABLE_INTERFACE_EVENT_LONGPRESSED, NULL));