* wtools.c (quick_callback): Restore old obscure functionality -
DLG_KEY should not return MSG_HANDLED to allow the button callback to override the dialog return value.
Этот коммит содержится в:
родитель
7f99259757
Коммит
001578a96f
@ -1,5 +1,9 @@
|
||||
2003-09-09 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* wtools.c (quick_callback): Restore old obscure functionality -
|
||||
DLG_KEY should not return MSG_HANDLED to allow the button
|
||||
callback to override the dialog return value.
|
||||
|
||||
* key.c (xterm_key_defines): Add keypad keys.
|
||||
Reported by Vyacheslav Filyayev <vfilyayev@d2.khai.edu>
|
||||
|
||||
|
@ -240,11 +240,12 @@ quick_callback (struct Dlg_head *h, dlg_msg_t msg, int parm)
|
||||
{
|
||||
switch (msg) {
|
||||
case DLG_KEY:
|
||||
/* Enter closes the dialog, not just moves to the next widget */
|
||||
if (parm == '\n') {
|
||||
h->ret_value = B_ENTER;
|
||||
dlg_stop (h);
|
||||
return MSG_HANDLED;
|
||||
}
|
||||
/* Allow button callback to override h->ret_value */
|
||||
return MSG_NOT_HANDLED;
|
||||
|
||||
default:
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user