overrides the OfferKeyEventL method in container class(drived from CCoeControl)
TKeyResponse CMailListContainer::OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType)
{
TInt code = aKeyEvent.iCode;
if (iListBox)
{
if (code == EKeyEnter || code == EKeyOK || code == EKeyLeftShift)\
{
TBool shiftKeyPressed = ( aKeyEvent.iModifiers & EModifierShift );
if (!shiftKeyPressed)
{
//这里写点确认键后的操作 return EKeyWasConsumed;
}
else
{
return iListBox->OfferKeyEventL(aKeyEvent, aType);
}
}
else
{
return iListBox->OfferKeyEventL(aKeyEvent, aType);
}
}
return EKeyWasNotConsumed;
}
posted on 2008-01-18 13:49
披星戴月 阅读(912)
评论(0) 编辑 收藏 引用 所属分类:
symbian