equal
deleted
inserted
replaced
213 } |
213 } |
214 else |
214 else |
215 { |
215 { |
216 result = iListBox->OfferKeyEventL( aKeyEvent, aType ); |
216 result = iListBox->OfferKeyEventL( aKeyEvent, aType ); |
217 |
217 |
218 |
|
219 if( aKeyEvent.iCode == EKeyUpArrow ) |
218 if( aKeyEvent.iCode == EKeyUpArrow ) |
220 { |
219 { |
221 if( iPartner ) |
220 if( iPartner ) |
222 { |
221 { |
223 iPartner->HandleUpKeyPressedL(); |
222 iPartner->HandleUpKeyPressedL(); |
234 { |
233 { |
235 if( iPartner ) |
234 if( iPartner ) |
236 { |
235 { |
237 iPartner->HandleSelectionKeyPressedL(); |
236 iPartner->HandleSelectionKeyPressedL(); |
238 } |
237 } |
239 |
|
240 } |
238 } |
241 } |
239 } |
242 } |
240 } |
243 return result; |
241 return result; |
244 } |
242 } |
245 |
243 |
246 // --------------------------------------------------------- |
244 // --------------------------------------------------------- |
468 iListBox->Model()->SetOwnershipType( ELbmDoesNotOwnItemArray ); |
466 iListBox->Model()->SetOwnershipType( ELbmDoesNotOwnItemArray ); |
469 iListBox->HandleItemAdditionL(); |
467 iListBox->HandleItemAdditionL(); |
470 |
468 |
471 if ( aItemTextArray->MdcaCount() ) |
469 if ( aItemTextArray->MdcaCount() ) |
472 { |
470 { |
473 TUint lastIndex = aItemTextArray->MdcaCount() -1; |
471 TInt lastIndex = aItemTextArray->MdcaCount() -1; |
474 if ( aCurrentItem <= lastIndex ) |
472 if ( aCurrentItem <= lastIndex ) |
475 { |
473 { |
476 iListBox->SetCurrentItemIndex( aCurrentItem ); |
474 iListBox->SetCurrentItemIndex( aCurrentItem ); |
477 } |
475 } |
478 else //( aCurrentItem > lastIndex ) |
476 else //( aCurrentItem > lastIndex ) |