Set popup failed return value as negative number 81/75681/2
authorsangwan.kwon <sangwan.kwon@samsung.com>
Tue, 21 Jun 2016 04:06:35 +0000 (13:06 +0900)
committersangwan kwon <sangwan.kwon@samsung.com>
Tue, 21 Jun 2016 04:17:20 +0000 (21:17 -0700)
Change-Id: Ia9dcf4d1d28cf821aa225f5c4c122d297716e32c
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
src/framework/ui/popup/popup.cpp

index 22ebb6f..85aaa56 100644 (file)
@@ -278,8 +278,10 @@ Eina_Bool Popup::keyDownCb(void *, int , void *ev)
        DEBUG("Key down event caught.");
        auto event = reinterpret_cast<Ecore_Event_Key *>(ev);
 
-       if(event->key == HOME_KEY)
+       if(event->key == HOME_KEY) {
+               response = -1;
                elm_exit();
+       }
 
        // Let the event continue to other callbacks.
        return ECORE_CALLBACK_PASS_ON;