Fixed #1038. Focus should now remain on code editor when after clicking on Surface.