onKeyReleased firing repeatedly before key is even released

Hi,

I am using the v3.0 develop branch, and just encountered behaviour that has changed regarding keyboard events, onKeyReleased.

Previously, this event was fired only once, after the key was actually released. SO for every onKeyPressed, there would only be one following onKeyReleased in the future.

The new behaviour is that onKeyPressed is followed by multiple repeated onKeyReleased events even if I havent physically released the key on the keyboard (on linux).

My question is, is this the new expected behaviour, or is this a bug and I should expect it to revert back to the old behaviour?

Thanks

anyone else experiencing this?

On linux, when handling keyboard events, the onKeyReleased event is firing immediately and repeatedly after onKeyPressed. Basically, I don’t believe there is a way to know if they key is still pressed anymore. Is this expected behaviour in the v3.0?

This does seem like a bug due to the move to glfw3 and GLFW_REPEAT being enabled by default, if anyone else needs the fix it is here:

thanks, I got encountered this bug too

There is an open pull request with a fix for this:
https://github.com/cocos2d/cocos2d-x/pull/3861