Hardware key can be intercepted when no popup is visible
Change-Id: I0c3b562962393d2297aecdedb655811b81be4be8
Ecore_Event_Key *ev = static_cast<Ecore_Event_Key*>(event);
Popupper* runner = static_cast<Popupper*>(data);
ALOGD("HW button pressed. type <" << type << "> pressed key is <" << ev->key << ">");
- if (!strcmp("XF86Home", ev->key) || !strcmp("XF86Back", ev->key)) {
+ if ((!strcmp("XF86Home", ev->key) || !strcmp("XF86Back", ev->key)) && runner->m_elementPtr) {
ALOGD("Respond as deny once.");
runner->m_popupResponseHandler(runner->m_elementPtr->getId(), NResponseType::None);
}