How to create a DCL that if user press the "enter" then proceed with the function as like clicking "OK" button. I already set "OK" button is_default = true but still if I press the enter nothing will happen. See the code below.
thanks in advance
Jhun
Code: Select all
dellay : dialog {
label = "DELETE LAYER";
initial_focus = "layname";
: column {
: edit_box {
label = "Layer";
key = layname;
width = 10;
value = "";
}
: row {
: button {
key = "accept";
width = 10;
label = "OK";
is_default = true;
}
: button {
key = "cancel";
label = "CANCEL";
width = 8;
is_default = false;
is_cancel = true;
}
}
}
}