There is a hook in https://github.com/Raynos/mercury/blob/master/examples/todomvc/lib/do-mutable-focus.js#L11-L15 for this.