diff -r 2d690156cf8f -r 315810614048 videoplayback/videoplaybackcontrols/tsrc/videoplaybackcontrols_test/src/mpxvpbuih_stub.cpp --- a/videoplayback/videoplaybackcontrols/tsrc/videoplaybackcontrols_test/src/mpxvpbuih_stub.cpp Thu Jul 15 18:41:27 2010 +0300 +++ b/videoplayback/videoplaybackcontrols/tsrc/videoplaybackcontrols_test/src/mpxvpbuih_stub.cpp Thu Aug 19 09:57:17 2010 +0300 @@ -15,7 +15,7 @@ * */ -// Version : %version: 7 % +// Version : %version: 8 % @@ -101,7 +101,7 @@ { MPX_DEBUG(_L("CMPXVideoPlaybackUserInputHandler::ProcessPointerEvent")); - MPX_DEBUG(_L(" iType = %d, iPosition = (%d,%d)"), + MPX_DEBUG(_L(" iType = %d, iPosition = (%d,%d)"), aPointerEvent.iType, aPointerEvent.iPosition.iX, aPointerEvent.iPosition.iY ); switch (iProcessingInputType) @@ -154,7 +154,6 @@ if (aType == EEventKeyDown) { iProcessingInputType = EMpxVideoKeyboard; - iLastPressedKeyCode = aKeyEvent.iCode; iLastPressedKeyScanCode = aKeyEvent.iScanCode; iContainer->DoHandleKeyEventL(aKeyEvent, aType); } @@ -162,19 +161,16 @@ } case EMpxVideoKeyboard: { - if (aType == EEventKeyUp) + if ( aKeyEvent.iScanCode == iLastPressedKeyScanCode ) { - // only handle up event for the key being handled - // ignore spurious key presses - if (aKeyEvent.iCode == iLastPressedKeyCode && - aKeyEvent.iScanCode == iLastPressedKeyScanCode) + iContainer->DoHandleKeyEventL( aKeyEvent, aType ); + + if ( aType == EEventKeyUp ) { - iContainer->DoHandleKeyEventL(aKeyEvent, aType); - - // reset the value only on key up event iProcessingInputType = EMpxVideoNone; } } + break; } default: