add focus after editor switch