fep/aknfep/src/aknfepuispellinputpane.cpp
branchRCL_3
changeset 12 5e18d8c489d6
parent 5 a47de9135b21
equal deleted inserted replaced
11:c8fb4cf7b3ae 12:5e18d8c489d6
    39 
    39 
    40 #include "aknfepuispellinputpane.h"
    40 #include "aknfepuispellinputpane.h"
    41 
    41 
    42 // CONSTANTS
    42 // CONSTANTS
    43 const TInt KNumberOfControl = 1;
    43 const TInt KNumberOfControl = 1;
    44 const TInt KSpellMaxLength = 32;    
    44 const TInt KSpellMaxLength = 63;    
    45 const TInt KTouchSpellEditorMaxLine = 1;  
    45 const TInt KTouchSpellEditorMaxLine = 1;  
    46 // Enumarations
    46 // Enumarations
    47 enum TControls
    47 enum TControls
    48     {
    48     {
    49     EInputWin
    49     EInputWin
   199 TKeyResponse CAknFepUiSpellInputPane::OfferKeyEventL(
   199 TKeyResponse CAknFepUiSpellInputPane::OfferKeyEventL(
   200             const TKeyEvent& aKeyEvent, TEventCode aType )
   200             const TKeyEvent& aKeyEvent, TEventCode aType )
   201     {
   201     {
   202     if (iInputWin->IsFocused())
   202     if (iInputWin->IsFocused())
   203         {
   203         {
   204         return iInputWin->OfferKeyEventL( aKeyEvent, aType );
   204 		TKeyResponse  response = iInputWin->OfferKeyEventL( aKeyEvent, aType );
       
   205 		if ( response == EKeyWasNotConsumed )
       
   206 			{
       
   207 			if ( aType == EEventKeyDown || aType == EEventKeyUp )
       
   208 				{
       
   209                 response = EKeyWasConsumed;
       
   210                 }
       
   211 			}
       
   212 		return response;
   205         }
   213         }
   206 
   214 
   207     return EKeyWasNotConsumed;
   215     return EKeyWasNotConsumed;
   208     }
   216     }
   209 
   217