bsddialog: in textbox mode differentiate between Exit and Extra buttons
If run --extra-button --textbox dialog will have two buttons, but either of them would return 0 exit status. We definitely want the Extra to report its value. Reviewed by: jlduran, asiciliano Differential Revision: https://reviews.freebsd.org/D48668
This commit is contained in:
committed by
Gleb Smirnoff
parent
cdbff1b299
commit
96a241a359
@@ -200,7 +200,7 @@ bsddialog_textbox(struct bsddialog_conf *conf, const char *file, int rows,
|
||||
switch(input) {
|
||||
case KEY_ENTER:
|
||||
case 10: /* Enter */
|
||||
retval = BSDDIALOG_OK;
|
||||
retval = BUTTONVALUE(d.bs);
|
||||
loop = false;
|
||||
break;
|
||||
case 27: /* Esc */
|
||||
|
||||
Reference in New Issue
Block a user