Hi,
I am using the below code in constructor of AppUi to hide application icon from the task list. Application icon is hidden in task list but when we press menu key, it is not showing the menu grid area. How to enable menu key so that menu grid area is shown on menu key press.

const TUid KUidHelloWorldBasicApp = {0xECA1E141};
RWindowGroup iWinGroup = iEikonEnv->RootWin();
TInt wgId1 = iWinGroup.Identifier();
RWsSession session = iEikonEnv->WsSession();
CApaWindowGroupName* iwgName = CApaWindowGroupName::NewLC(session, wgId1);
iwgName->SetAppUid(KUidHelloWorldBasicApp);
iwgName->ConstructFromWgIdL(wgId1);
iwgName->SetSystem(ETrue);
iwgName->SetHidden(ETrue);
iWinGroup.SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront);
iwgName->SetWindowGroupName(iWinGroup);
CleanupStack::PopAndDestroy();


Thanks in advance