Add a new feature : autosave when the editor lose focus (file switching, pop-up, alt-tab, ...).

This add an interesting feature that could help some pyton/web developpers. It add some unwanted thing (pop-up saving), but I think the feature stay interesting.

Signed-off-by: bestel <steven.valsesia@gmail.com>