Try to make DTK rewrite handle events the same way as the old code.