make editor cancel when not active pane