End Keyboard Event Propagation

How can we stop keyboard propagation to ancestor controls (and ESPECIALLY to external applications)?

E.g., when I handle the “TAB” key in the GUI, the host browser still processes it and I have now tabbed out of my BJS application.

@PolygonalSun may have the trick for you

I’d say that it depends on how the KeyboardEvent data is being handled (eg. via the GUI or via a user-defined EventListener) but usually the KeyboardEvent’s preventDefault should handle that. Is this issue that you’re seeing exclusively with the Babylon.js’ GUI or are you seeing it elsewhere?

1 Like

Hello just checking in, was your question answered? @Slimfinger