--- a/landmarksui/app/src/CLmkLbWithFilterContainer.cpp Tue Feb 02 00:16:03 2010 +0200
+++ b/landmarksui/app/src/CLmkLbWithFilterContainer.cpp Fri Feb 19 22:45:00 2010 +0200
@@ -27,6 +27,7 @@
#include "CLmkAppSelectorImplBase.h"
#include "CLmkLbWithFilterContainer.h"
#include <lmkerrors.h>
+#include "Debug.h"
// CONSTANTS
namespace {
@@ -117,6 +118,7 @@
const TKeyEvent& aKeyEvent,
TEventCode aType )
{
+ DEBUG( CLmkLbWithFilterContainer::OfferKeyEventL start );
TKeyResponse result( EKeyWasNotConsumed );
if ( ( aType == EEventKey || aType == EEventKeyUp) )
{
@@ -130,16 +132,19 @@
CLmkAppSelectorImplBase& selector = SelectorImpl();
TInt markedCount( selector.ListMarkedItemCountL() );
+ DEBUG1( CLmkLbWithFilterContainer::OfferKeyEventL markedCount = %d,markedCount);
CEikMenuBar* menuBar = MenuBar();
if( menuBar )
{
- if( MenuBar()->ItemSpecificCommandsEnabled()
- && markedCount <= 0 )
+ if( MenuBar()->ItemSpecificCommandsEnabled())
{
return EKeyWasConsumed;
}
}
-
+ if( markedCount <= 0)
+ {
+ return EKeyWasConsumed;
+ }
selector.ProcessCommandL( ELmkCmdDeleteLm );
return EKeyWasConsumed;
}
@@ -152,6 +157,7 @@
UpdateMskContainerL();
}
}
+ DEBUG1( CLmkLbWithFilterContainer::OfferKeyEventL End result=%d,result );
return result;
}