videocollection/hgmyvideos/src/vcxhgmyvideosmainview.cpp
branchRCL_3
changeset 54 315810614048
parent 53 2d690156cf8f
--- a/videocollection/hgmyvideos/src/vcxhgmyvideosmainview.cpp	Thu Jul 15 18:41:27 2010 +0300
+++ b/videocollection/hgmyvideos/src/vcxhgmyvideosmainview.cpp	Thu Aug 19 09:57:17 2010 +0300
@@ -15,7 +15,7 @@
 */
 
 
-// Version : %version: 48 %
+// Version : %version: 49 %
 
 // INCLUDE FILES
 #include <bldvariant.hrh>
@@ -530,22 +530,14 @@
     {
     TKeyResponse response( EKeyWasNotConsumed );
     
-    // Clear key performs 'Delete'.
-    if ( aKeyEvent.iScanCode == EStdKeyBackspace && aType == EEventKey )
+    // Clear and Delete keys perform 'Delete'.
+    if ( ( aKeyEvent.iScanCode == EStdKeyBackspace || 
+           aKeyEvent.iScanCode == EStdKeyDelete ) &&
+         aType == EEventKey )
         {
         if ( iModel->AppState() == CVcxHgMyVideosModel::EVcxMyVideosAppStateVideoIdle )
             {
-            RArray<TInt> markedVideos;
-            CleanupClosePushL( markedVideos );
-            
-            VideoListL()->VideoModel().MarkedVideosL( markedVideos );
-            TInt count = markedVideos.Count();
-			CleanupStack::PopAndDestroy( &markedVideos );
-			
-            if ( count > 0 )
-                {
-                HandleCommandL( EVcxHgMyVideosCmdDelete );
-                }
+            HandleCommandL( EVcxHgMyVideosCmdDelete );
             
 			response = EKeyWasConsumed;
             }