Dispatch event on active text editor view

Closes atom/atom#4654