After opening files, focus the editor widget (based on a patch by Can Koy, thanks).