I think this is the sort of thing you're looking for :
My understanding is the allow_accept will only work if the control it is located in has focus when ENTER is pressed
texteditor : dialog {
label = "Edit Text";
initial_focus = "text_edit";
: edit_box {
label = "Text:";
key = "text_edit";
edit_width = 100;
edit_limit = 1536;
allow_accept = true;
}
ok_cancel;
}