editor: Remove apparently unnecessary code for focus preservation