diff -r 9f56a4e1b8ab -r 08e69e956a8c uifw/AvKon/src/AknListBoxSettingPage.cpp --- a/uifw/AvKon/src/AknListBoxSettingPage.cpp Mon Mar 15 12:41:34 2010 +0200 +++ b/uifw/AvKon/src/AknListBoxSettingPage.cpp Wed Mar 31 21:59:52 2010 +0300 @@ -168,6 +168,33 @@ return EFalse; } +//--------------------------------------------------------------------------------------- +// CAknListBoxSettingPage::EnableSingleClickHighlightL() +// Enables highlight to listbox control in single click mode if needed +//--------------------------------------------------------------------------------------- +// +TBool CAknListBoxSettingPage::EnableSingleClickHighlight( TInt aCommandId ) + { + TBool highLightEnabled = EFalse; + + if ( aCommandId == EAknSoftkeySelect && + ListBoxControl()->ItemDrawer()->Flags() + & CListItemDrawer::ESingleClickDisabledHighlight ) + { + TKeyEvent event; + event.iCode = EKeyOK; + // restore highlight with simulated key event + TKeyResponse response = + ListBoxControl()->OfferKeyEventL( event, EEventKey ); + + if ( response == EKeyWasConsumed ) + { + highLightEnabled = ETrue; + } + } + return highLightEnabled; + } + void CAknListBoxSettingPage::CreateIconAndAddToArrayL( CArrayPtr*& aIconArray, const TAknsItemID& aId,