TKeyResponse CMyListBoxAppView::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType) { if (iListBox) { if (EEventKeyDown == aType) { HandleListBoxEventL( iListBox, MEikListBoxObserver::EEventEnterKeyPressed); } } return EKeyWasNotConsumed; }
void CCommonDialogsExSettingsDialog::ProcessCommandL( TInt aCommandId ) { switch ( aCommandId ) { case EAknSoftkeySelect: { CEikListBox* listBox = static_cast< CEikListBox* > ( Control( ECommonDialogsExSettingsListboxId ) ); HandleListBoxEventL( listBox, EEventEditingStarted ); break; } default: { CEikonEnv::Static()->EikAppUi()->HandleCommandL( aCommandId ); break; } } }