I would not worry about performance in this case, since an event is sent for every editor update already, which is whenever you hit a key or move the mouse.
It kind of makes a separate "new line" event obsolete, however. The editor implements the "smart indent" feature (which basically needs a "new line event") using the editor update event too.