mpxmusicplayer/commonui/src/mpxfilenamequerydlg.cpp
branchRCL_3
changeset 50 26a1709b9fec
parent 21 a1247965635c
equal deleted inserted replaced
49:455f89b7fcc5 50:26a1709b9fec
   234 // 
   234 // 
   235 TKeyResponse CMPXFileNameQueryDlg::OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ) 
   235 TKeyResponse CMPXFileNameQueryDlg::OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ) 
   236     { 
   236     { 
   237     TKeyResponse response = EKeyWasNotConsumed;
   237     TKeyResponse response = EKeyWasNotConsumed;
   238     // consume 'enter' so it won't acknowledge the dialog
   238     // consume 'enter' so it won't acknowledge the dialog
   239     if ( aType == EEventKey && aKeyEvent.iCode == EKeyEnter ) 
   239 
       
   240     TBool vkbOpen = EFalse;
       
   241     CAknQueryControl* queryControl = QueryControl();
       
   242     if ( queryControl )
       
   243         {
       
   244         CEikEdwin* edwin = static_cast< CEikEdwin* >(
       
   245             queryControl->ControlByLayoutOrNull( EDataLayout ) );
       
   246         if ( edwin )
       
   247             {            
       
   248             if ( edwin->AknEdwinFlags() & EAknEditorFlagTouchInputModeOpened )
       
   249                 {
       
   250                 // virtual keyboard is active.                
       
   251                 vkbOpen = ETrue;
       
   252                 }
       
   253             }
       
   254         }    
       
   255     
       
   256     if ( vkbOpen && aType == EEventKey && aKeyEvent.iCode == EKeyEnter ) 
   240         { 
   257         { 
   241         response = EKeyWasConsumed;
   258         response = EKeyWasConsumed;
   242         } 
   259         } 
   243     else
   260     else
   244         {
   261         {