Custom event dispatcher. Optimizations on highlighter and groups when focus changes.