camerauis/cameraapp/generic/src/CamContainerBase.cpp
branchRCL_3
changeset 62 f0c0788c4de2
parent 57 2c87b2808fd7
child 67 756ad29ed18e
equal deleted inserted replaced
57:2c87b2808fd7 62:f0c0788c4de2
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   392   // which we have to ignore)
   392   // which we have to ignore)
   393   else if ( aType == EEventKey && 
   393   else if ( aType == EEventKey && 
   394             aKeyEvent.iCode == EKeyOK && 
   394             aKeyEvent.iCode == EKeyOK && 
   395             aKeyEvent.iRepeats == 0 )
   395             aKeyEvent.iRepeats == 0 )
   396     {
   396     {
   397     iView.HandleCommandL( EAknSoftkeySelect );
   397     if( !iController.IsDemandKeyRelease() )
       
   398         {
       
   399         // Forward selection key event if button has been released 
       
   400         // after last video capture
       
   401         iView.HandleCommandL( EAknSoftkeySelect );
       
   402         }
   398     return EKeyWasConsumed; // indicate key press was processed
   403     return EKeyWasConsumed; // indicate key press was processed
   399     }
   404     }
   400     // stop video or sequence if get applications key press (short or long)
   405     // stop video or sequence if get applications key press (short or long)
   401     // in touch also send key stops
   406     // in touch also send key stops
   402   else if( aKeyEvent.iCode == EKeyApplication ||
   407   else if( aKeyEvent.iCode == EKeyApplication ||