apengine/apsettingshandlerui/src/ApSelPopupList.cpp
changeset 4 77415202bfc8
parent 0 5a93021fdf25
child 8 2e6c4614c58e
child 27 489cf6208544
equal deleted inserted replaced
3:f7816ffc66ed 4:77415202bfc8
   525             i = count;
   525             i = count;
   526             }
   526             }
   527         }
   527         }
   528     iList->SetCurrentItemIndexAndDraw( idx );
   528     iList->SetCurrentItemIndexAndDraw( idx );
   529     SelectCurrentItemL();
   529     SelectCurrentItemL();
   530     iOldSelection = idx;
       
   531     
   530     
   532     APSETUILOGGER_LEAVEFN( EListbox,"SelPopupList::SetSelectedL")
   531     APSETUILOGGER_LEAVEFN( EListbox,"SelPopupList::SetSelectedL")
   533     }
   532     }
   534 
   533 
   535 
   534 
   785     
   784     
   786     switch ( aEventType )
   785     switch ( aEventType )
   787         {
   786         {
   788         case EEventEnterKeyPressed:
   787         case EEventEnterKeyPressed:
   789         case EEventItemDoubleClicked:
   788         case EEventItemDoubleClicked:
       
   789         case EEventItemSingleClicked:
   790             {
   790             {
   791             ProcessCommandL( EApSelCmdSelect );
   791             ProcessCommandL( EApSelCmdSelect );
   792             break;
       
   793             }
       
   794         case EEventItemSingleClicked:
       
   795             // Second click to the same item makes the selection and closes the
       
   796             // setting page, first click just moves the radio button mark.
       
   797             {
       
   798             if ( ListBoxControl()->CurrentItemIndex() == iOldSelection )
       
   799                 {
       
   800                 ProcessCommandL( EApSelCmdSelect );
       
   801                 }
       
   802             else
       
   803                 {
       
   804                 CAknRadioButtonSettingPage::HandleListBoxEventL( aListBox, aEventType );
       
   805                 iOldSelection = ListBoxControl()->CurrentItemIndex();
       
   806                 }
       
   807             break;
   792             break;
   808             }
   793             }
   809         case EEventEditingStarted:
   794         case EEventEditingStarted:
   810             {
   795             {
   811             break;
   796             break;