entry: hide ctxpopup during long press and drag 14/109814/1
authorMinchul Lee <slotus.lee@samsung.com>
Thu, 12 Jan 2017 01:41:59 +0000 (10:41 +0900)
committerMinchul Lee <slotus.lee@samsung.com>
Thu, 12 Jan 2017 01:45:02 +0000 (10:45 +0900)
Sometimes, ctxpopup was not hidden when drag.
When select new word on drag, ctxpopup should be hidden.

Change-Id: Ic206d3d086b20cfa37eb3fea5c1fd48e58b86139
Signed-off-by: Minchul Lee <slotus.lee@samsung.com>
src/lib/elm_entry.c

index 410b7e656d8c93f0e5bc0c2fdc75c8f9f74a3a85..85e1817e2c0c2a3ef029403c7efa95443da824dd 100644 (file)
@@ -3329,7 +3329,13 @@ _mouse_move_cb(void *data,
                   int cur_pos = edje_object_part_text_cursor_pos_get
                                        (sd->entry_edje, "elm.text", EDJE_CURSOR_MAIN);
                   if (cur_pos != sd->cursor_move_pos)
-                    _select_word(data, NULL, NULL);
+                    {
+                       // TIZEN_ONLY (20170112): hide ctxpopup during long press and drag
+                       if ((sd->api) && (sd->api->obj_hidemenu))
+                         sd->api->obj_hidemenu(data);
+                       //
+                       _select_word(data, NULL, NULL);
+                    }
                   //
                }
              //