I think CCKeypadDelegate's event should can be eaten

I think CCKeypadDelegate's event should can be eaten
0.0 0


Just like:
virtual bool ccTouchBegan(CCTouch pTouch, CCEventpEvent) { CC_UNUSED_PARAM(pTouch);

I think that if CCKeypadDelegate’s event should can be eaten will be good.
consider this case:
1.FisrtLayer can response CCKeypadDelegate’s event,
and the SecondLayer as the same too.
2.when do followed code in SecondLayer:
void SecondLayer::keyBackClicked(){
CCDirector::sharedDirector()->replaceScene(CCTransitionFade::transitionWithDuration(0.5f, FisrtLayer::scene()));
Then the FisrtLayer will response the keyBackClicked event,but what if I don’t want the FirstLayer response this event when
the SecondLayer has response the keyBackClicked event.

So, I think the keyBackClicked event will be eaten by SecondLayer,therefore the FirstLayer will not responsed this event.


Hi guys, I had wrote a patch for cocos2d-1.0.1-x-0.9.1
But it may also worked for followed version I think.:slight_smile:


#740 is created for it. Thank you.


There also another question in http://www.cocos2d-x.org/boards/6/topics/4014
But no one reply me at last. I will be happy if you take a time to review it .