mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-05 11:04:42 +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);
|
listbox_select_entry (l, e);
|
||||||
|
|
||||||
|
(*h->callback) (h, DLG_ACTION, l->pos);
|
||||||
|
|
||||||
if (l->cback)
|
if (l->cback)
|
||||||
action = (*l->cback) (l);
|
action = (*l->cback) (l);
|
||||||
else
|
else
|
||||||
@ -2056,12 +2058,15 @@ listbox_callback (Widget *w, widget_msg_t msg, int parm)
|
|||||||
return MSG_NOT_HANDLED;
|
return MSG_NOT_HANDLED;
|
||||||
|
|
||||||
case WIDGET_KEY:
|
case WIDGET_KEY:
|
||||||
if ((ret_code = listbox_key (l, parm)))
|
if ((ret_code = listbox_key (l, parm)) != MSG_NOT_HANDLED) {
|
||||||
listbox_draw (l, 1);
|
listbox_draw (l, 1);
|
||||||
|
(*h->callback) (h, DLG_ACTION, l->pos);
|
||||||
|
}
|
||||||
return ret_code;
|
return ret_code;
|
||||||
|
|
||||||
case WIDGET_CURSOR:
|
case WIDGET_CURSOR:
|
||||||
widget_move (&l->widget, l->cursor_y, 0);
|
widget_move (&l->widget, l->cursor_y, 0);
|
||||||
|
(*h->callback) (h, DLG_ACTION, l->pos);
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
|
||||||
case WIDGET_FOCUS:
|
case WIDGET_FOCUS:
|
||||||
|
Loading…
Reference in New Issue
Block a user