Fixed exception regarding menu key.
authorKeuckdo Bang <keuckdo.bang@samsung.net>
Wed, 12 Jun 2013 08:24:59 +0000 (17:24 +0900)
committerKeuckdo Bang <keuckdo.bang@samsung.net>
Wed, 12 Jun 2013 08:24:59 +0000 (17:24 +0900)
Change-Id: I0f56737dbfa4e6c49f2fdd0c5d2d05ec0444786b

src/ui/controls/FUiCtrl_FormImpl.cpp

index 04ab5ee..1def572 100644 (file)
@@ -858,11 +858,11 @@ _FormImpl::SetFormBackEventListener(const IFormBackEventListener* pFormBackEvent
 void
 _FormImpl::SetFormMenuEventListener(const IFormMenuEventListener* pFormMenuEventListener)
 {
-       bool isBackButton = false;
+       bool isMenuButton = false;
 
-       Tizen::System::SystemInfo::GetValue(L"http://tizen.org/feature/input.keys.back", isBackButton);
+       Tizen::System::SystemInfo::GetValue(L"http://tizen.org/feature/input.keys.menu", isMenuButton);
 
-       if(!isBackButton)
+       if(!isMenuButton)
        {
                SysTryReturnVoidResult(NID_UI_CTRL, GetFooter() || GetHeader(), E_INVALID_STATE, "[E_INVALID_STATE] Footer isn't constructed.");
        }