Configurability so that ESC does not shut down Sample Recorder during recording(!)

i’ve lost so many recordings by pressing esc to toggle edit_mode = on → there it is, sample gone.

any chance we could decide which shortcut closes the dialog?