bin/main: code clean up.

split behaviors as possible.
This commit is contained in:
ChunEon Park 2015-02-19 12:29:33 +09:00
parent 1381b2ade3
commit bf122beaec
1 changed files with 6 additions and 1 deletions

View File

@ -744,9 +744,14 @@ main_key_down_cb(void *data, int type EINA_UNUSED, void *ev)
//Main Menu
if (!strcmp(event->key, "Escape"))
{
if (search_is_opened() || goto_is_opened())
if (goto_is_opened())
{
goto_close();
enventor_object_focus_set(ad->enventor, EINA_TRUE);
return ECORE_CALLBACK_DONE;
}
if (search_is_opened())
{
search_close();
enventor_object_focus_set(ad->enventor, EINA_TRUE);
return ECORE_CALLBACK_DONE;