mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
src/widget.c: WListbox: send DLG_ACTION message to the parent dialog.
This commit is contained in:
parent
9cf728f2c2
commit
19fddfa787
@ -2042,6 +2042,8 @@ listbox_callback (Widget *w, widget_msg_t msg, int parm)
|
||||
|
||||
listbox_select_entry (l, e);
|
||||
|
||||
(*h->callback) (h, DLG_ACTION, l->pos);
|
||||
|
||||
if (l->cback)
|
||||
action = (*l->cback) (l);
|
||||
else
|
||||
@ -2056,12 +2058,15 @@ listbox_callback (Widget *w, widget_msg_t msg, int parm)
|
||||
return MSG_NOT_HANDLED;
|
||||
|
||||
case WIDGET_KEY:
|
||||
if ((ret_code = listbox_key (l, parm)))
|
||||
if ((ret_code = listbox_key (l, parm)) != MSG_NOT_HANDLED) {
|
||||
listbox_draw (l, 1);
|
||||
(*h->callback) (h, DLG_ACTION, l->pos);
|
||||
}
|
||||
return ret_code;
|
||||
|
||||
case WIDGET_CURSOR:
|
||||
widget_move (&l->widget, l->cursor_y, 0);
|
||||
(*h->callback) (h, DLG_ACTION, l->pos);
|
||||
return MSG_HANDLED;
|
||||
|
||||
case WIDGET_FOCUS:
|
||||
|
Loading…
Reference in New Issue
Block a user