Don't autosave when focus is lost

This is rather annoying when used in conjunction with auto-compiling
IDEs such as Unity.