I converted my game from Cocos2d-x v2 to v3. As part of my conversion, I removed all the keyBackClicked() calls to registering a keyboard event listener.
I must say that even though I really love almost all v3 APIs, I'm not a fan of the alternative suggested to keyBackClicked() as seen here: http://www.cocos2d-x.org/reference/native-cpp/V3.0rc0/df/de4/classcocos2d_1_1_layer.html#a1a6063f88caff9915784067914ee142d
Nevertheless, I needed an alternative and I was able to implement this successfully. However, now I have a bug that whenever I add a TextFieldTTF to my layer and I try to use the keyboard to type, hitting backspace will also invoke the callback for my keyback. This is, obviously, undesired.
I really think that adding something like keypad listener would be a better idea over keyboard overriding with backspace. Alternatively, you could also add a virtual key for hardware back that is different from backspace, or even use the ESC button for that.
Any thoughts here?