--- a/cellular/PsetNotesUi/Src/PsuiQueryDialog.cpp Thu Aug 19 10:28:14 2010 +0300
+++ b/cellular/PsetNotesUi/Src/PsuiQueryDialog.cpp Tue Aug 31 15:45:17 2010 +0300
@@ -17,7 +17,7 @@
// INCLUDE FILES
-#include "PsuiQueryDialog.h"
+#include "psuiquerydialog.h"
// ================= MEMBER FUNCTIONS =======================
@@ -25,7 +25,7 @@
// might leave.
//
CPsuiQueryDialog::CPsuiQueryDialog( CAknQueryDialog::TTone aTone ) :
- CAknQueryDialog( aTone )
+ CAknQueryDialog( aTone )
{
}
@@ -53,21 +53,14 @@
TKeyResponse CPsuiQueryDialog::OfferKeyEventL( const TKeyEvent& aKeyEvent,
TEventCode aType )
{
- const TBool noKeyReleased =
- ( aKeyEvent.iScanCode == EStdKeyNo || aKeyEvent.iCode == EKeyNo ) &&
- aType == EEventKeyUp;
- const TBool escPressed = aKeyEvent.iCode == EKeyEscape;
-
- // AknDialogShutter sends esc keys so dismiss dialog
- if ( noKeyReleased || escPressed )
- {
- // End -key was pressed, so exit this query dialog
- TryExitL( EKeyNo );
- RDebug::Printf("PSETNOTESUI: exiting dialog");
- return EKeyWasConsumed;
- }
+ if ( ( aKeyEvent.iScanCode == EStdKeyNo || aKeyEvent.iCode == EKeyNo ) &&
+ aType == EEventKeyUp )
+ {
+ // End -key was pressed, so exit this query dialog
+ TryExitL( EKeyNo );
+ }
- return EKeyWasNotConsumed;
+ return EKeyWasNotConsumed;
}
// ---------------------------------------------------------------------------
@@ -76,7 +69,7 @@
//
TBool CPsuiQueryDialog::OkToExitL( TInt /*aCommand*/ )
{
- // Dismiss query
+ // Dismiss query
return ETrue;
}