ctxpopup: dimiss ctxpopup if escape key is pressed.
authorChunEon Park <hermet@hermet.pe.kr>
Thu, 17 Apr 2014 06:51:37 +0000 (15:51 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Thu, 17 Apr 2014 06:51:37 +0000 (15:51 +0900)
rahter than just hide of the ctxpopup, dimiss will be much better for usability.
because press "Escape" is closed to "Cancel" meaning conceptually.

src/lib/elc_ctxpopup.c

index a4ea92b170a1c1f48b4bac14e7af6d7e32a14127..8afe88fbdf20c8082ba5a00d780a69c0791e9068 100644 (file)
@@ -131,7 +131,7 @@ _key_action_move(Evas_Object *obj, const char *params)
 static Eina_Bool
 _key_action_escape(Evas_Object *obj, const char *params EINA_UNUSED)
 {
-   evas_object_hide(obj);
+   elm_ctxpopup_dismiss(obj);
    return EINA_TRUE;
 }