multibuttonentry: change key up callback into key down callback for consistency
authorJaeun Choi <jaeun12.choi@samsung.com>
Fri, 18 Apr 2014 02:33:43 +0000 (11:33 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 18 Apr 2014 02:33:43 +0000 (11:33 +0900)
Summary:
Every elementary widget's action is triggered by key down event except multibuttonentry.
There's no reason why focus move and deletion should happen on key up in multibuttonentry.
This patch modifies _layout_key_up_cb into _layout_key_down_cb.

Test Plan: None

Reviewers: raster, Hermet, seoz, jpeg

Reviewed By: Hermet

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

legacy/elementary/src/lib/elc_multibuttonentry.c

index c2b75e3..226fb80 100644 (file)
@@ -973,7 +973,7 @@ _entry_clicked_cb(void *data,
 }
 
 static void
-_layout_key_up_cb(void *data,
+_layout_key_down_cb(void *data,
                   Evas *e EINA_UNUSED,
                   Evas_Object *obj EINA_UNUSED,
                   void *event_info)
@@ -1056,8 +1056,8 @@ _callbacks_register(Evas_Object *obj)
      (obj, "mouse,clicked,1", "*", _mouse_clicked_signal_cb, sd);
 
    evas_object_event_callback_add
-     (wd->resize_obj, EVAS_CALLBACK_KEY_UP,
-     _layout_key_up_cb, obj);
+     (wd->resize_obj, EVAS_CALLBACK_KEY_DOWN,
+     _layout_key_down_cb, obj);
 
    evas_object_event_callback_add
      (sd->box, EVAS_CALLBACK_RESIZE, _box_resize_cb, obj);