Initial suggestion for extension implmentation.

Changed this to check if the event.consumed property has been set to True