jeudi 17 novembre 2016

Sprite is capturing keyboard events

It seems that a Sprite in my application is capturing keyboard events and not letting them propagate to the main application that is listening for them.

I have a GraphicElement that I am using for drag and drop in a container and I've added event listeners to the GraphicElement.displayObject which is a Sprite. I have UIComponents in that same Group that ignore keyboard events.

Is there a setting that I'm missing? I'm listening for CMD + Z.

Note: I was changing some settings like buttonMode = false, mouseChildren = false all at runtime and then it started working but if I try and change them in code at runtime it seems it doesn't work.

Aucun commentaire:

Enregistrer un commentaire