mpxmusicplayer/commonui/src/mpxfilenamequerydlg.cpp
branchRCL_3
changeset 21 a1247965635c
parent 0 ff3acec5bc43
child 50 26a1709b9fec
--- a/mpxmusicplayer/commonui/src/mpxfilenamequerydlg.cpp	Wed Apr 14 15:54:18 2010 +0300
+++ b/mpxmusicplayer/commonui/src/mpxfilenamequerydlg.cpp	Tue Apr 27 16:34:37 2010 +0300
@@ -228,6 +228,26 @@
     }
 
 // -----------------------------------------------------------------------------
+// CMPXFileNameQueryDlg::OfferKeyEventL
+// 
+// -----------------------------------------------------------------------------
+// 
+TKeyResponse CMPXFileNameQueryDlg::OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ) 
+    { 
+    TKeyResponse response = EKeyWasNotConsumed;
+    // consume 'enter' so it won't acknowledge the dialog
+    if ( aType == EEventKey && aKeyEvent.iCode == EKeyEnter ) 
+        { 
+        response = EKeyWasConsumed;
+        } 
+    else
+        {
+        response = CAknTextQueryDialog::OfferKeyEventL(aKeyEvent, aType); 
+        }
+    return response;
+    }
+
+// -----------------------------------------------------------------------------
 // CMPXFileNameQueryDlg::IsValidName
 // -----------------------------------------------------------------------------
 //