gengrid: ignore key events if item reorder is going on.
authorAmitesh Singh <amitesh.sh@samsung.com>
Sat, 26 Apr 2014 18:17:01 +0000 (03:17 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Sat, 26 Apr 2014 18:17:02 +0000 (03:17 +0900)
Summary: This was missed in 43eb52e159.

Test Plan:
elementary_test->"Gengrid Focus" and enable "reorder mode" by clicking "redorder mode enable" checkbox.
Move the items by direction keys.

Reviewers: raster, seoz

Reviewed By: seoz

CC: seoz
Differential Revision: https://phab.enlightenment.org/D801

legacy/elementary/src/lib/elm_gengrid.c

index 69a6800..dd30714 100644 (file)
@@ -2174,6 +2174,8 @@ _key_action_move(Evas_Object *obj, const char *params)
          elm_interface_scrollable_content_viewport_geometry_get
          (NULL, NULL, &v_w, &v_h));
 
+   if (sd->reorder_mode && sd->reorder.running) return EINA_TRUE;
+
    if (!strcmp(dir, "left"))
      {
         if (sd->reorder_mode)