Can you try listening for the event on the stage?
systemManager.stage.addEventListener . . . .
If you check out ViewNavigatorApplicationBase.deviceKeyDownHandler, you'll see the logic that checks if the developer has cancelled the event via preventDefault().
Try setting a breakpoint there to see what is going on.
Thank you, Jason.
I thought it was a case of the event being listened from somewhere else as well.
Same when I try to cancel the click event on an item renderer of a list, where I have to override it from its parent class.
I'll let you know if that worked, I sure it will.
When listening to application-level events (let's call them) is it better to do so on the SystemManager rather than the NativeApplication, generally speaking?
1 person found this helpful
You should listen to the stage, which can be accessed via the SystemManager.
That worked after setting useCapture=true in the addEventListener method.
event.preventDefault() stops propagation in tandem with capture.