Fix code editor focus issues.