diff-preview: move escape handler setup to file editor constructor