Hide context menu popup and link magnifier through hardware back key event
authorTaeyun An <ty.an@samsung.com>
Thu, 27 Jun 2013 11:05:45 +0000 (20:05 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 27 Jun 2013 12:29:13 +0000 (12:29 +0000)
[Title] Hide context menu popup and link magnifier through hardware back key event
[Issue#] N/A
[Problem] Not able to hide context menu popup and link magnifier through hardware back key event
[Cause] There is no implementation.
[Solution] Hide context menu popup and link magnifier through hardware back key event

Change-Id: I9731a1ad1ef079f1e6fa500eb520d0698630f3bb

Source/WebKit2/UIProcess/tizen/WebContextMenuProxyTizen.cpp

index 3c90bab..0b3be18 100755 (executable)
@@ -44,6 +44,7 @@
 #include <wtf/text/CString.h>
 
 #include <stdio.h>
+#include <efl_assist.h>
 
 using namespace WebCore;
 
@@ -103,6 +104,7 @@ void WebContextMenuProxyTizen::createEflMenu(const Vector<WebContextMenuItemData
         topWidget = m_webView;
 
     m_popup = elm_ctxpopup_add(topWidget);
+    ea_object_event_callback_add(m_popup, EA_CALLBACK_BACK, ea_ctxpopup_back_cb, NULL);
     if (!m_popup)
         return;