switching focus to the editor didnt actually focus the cursor on the editor, you needed to click, closes #40