uifw/AvKon/src/AknPhoneNumberEditor.cpp
branchRCL_3
changeset 4 8ca85d2f0db7
parent 0 2f259fa3e83a
child 51 fcdfafb36fe7
equal deleted inserted replaced
0:2f259fa3e83a 4:8ca85d2f0db7
  1079     HBufC* allowChars = iEikonEnv->AllocReadResourceLC( 
  1079     HBufC* allowChars = iEikonEnv->AllocReadResourceLC( 
  1080         R_EIK_ALLOWED_STANDARDNUMBERMODEKEYMAP );   
  1080         R_EIK_ALLOWED_STANDARDNUMBERMODEKEYMAP );   
  1081     
  1081     
  1082     // check if the characters are allowed, if one character is not allowed, 
  1082     // check if the characters are allowed, if one character is not allowed, 
  1083     // it will not be pasted into phone number editor
  1083     // it will not be pasted into phone number editor
  1084 	if ( fepState->CurrentInputMode() != EAknEditorTextInputMode )
  1084     CAknExtendedInputCapabilities * pCapabilities(iExtension->iExtendedInputCapabilities);
       
  1085 	if ( fepState->CurrentInputMode() != EAknEditorTextInputMode && pCapabilities
       
  1086 		&& pCapabilities->EditorType() != CAknExtendedInputCapabilities::EHybridAlphaNumericEditor )
  1085 		{
  1087 		{
  1086 		TInt pos = 0;
  1088 		TInt pos = 0;
  1087 		TInt index = 0;
  1089 		TInt index = 0;
  1088 		while ( index < buf.Length() )
  1090 		while ( index < buf.Length() )
  1089 			{
  1091 			{
  1292     	return 0;
  1294     	return 0;
  1293     	}
  1295     	}
  1294 	return edwinState->Flags();	
  1296 	return edwinState->Flags();	
  1295 	}
  1297 	}
  1296 
  1298 
       
  1299 // --------------------------------------------------------------------------
       
  1300 // CAknPhoneNumberEditor::MakeVisible
       
  1301 // --------------------------------------------------------------------------
       
  1302 //
       
  1303 void CAknPhoneNumberEditor::MakeVisible(TBool aVisible)
       
  1304 	{
       
  1305 	CCoeControl::MakeVisible(aVisible);
       
  1306 	if ( !aVisible )
       
  1307 		{
       
  1308 	    CloseVKB();
       
  1309 		}
       
  1310 	}
  1297 
  1311 
  1298 // End of file
  1312 // End of file