@eneroth3 said:
In some cases the developer might not want this so it shouldn't always be enabled.
Absolutely right!
The event bubbling concept in the HTML DOM allows to "cancel" further bubbling, if your event listener has already "fullfilled" the event and there is nothing left that you want to happen (otherwise the next, outer event handlers would get the event and act on it). Expanding this concept from WebDialogs to the SketchUp window could be done re-use something with which developers are familiar, without adding new API methods or arguments.
No matter how it would be realized, it would really be useful for us developers if SketchUp could incorporate this feature.
Would it make sense to allow this for different kinds of events, or should it filter out all except keyboard events?