I added an overwriteToggle event to allow for custom UI elements reacting to an overwrite mode change.
For info see discussion here adobe/brackets#6328
Add overwriteToggle event
Signal overwriteToggle event
Pushed f9aa052 instead, which passes the current state to the event handler, and doesn't dump trailing whitespace into the file.