1
1

Allow close help and tree dialogs using ctrl-g shortcut (SIGINT).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Andrew Borodin 2011-11-04 12:16:10 +03:00
родитель 7e6ff9caf9
Коммит 140d4ea117
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -1105,9 +1105,10 @@ tree_execute_cmd (WTree * tree, unsigned long command)
case CK_Delete:
tree_rmdir (tree);
break;
case CK_Cancel:
/* don't close tree due to SIGINT */
break;
case CK_Quit:
if (!tree->is_panel)
dlg_stop (((Widget *) tree)->owner);
return res;
default:
res = MSG_NOT_HANDLED;
}

Просмотреть файл

@ -917,9 +917,6 @@ help_execute_cmd (unsigned long command)
case CK_Quit:
dlg_stop (whelp);
break;
case CK_Cancel:
/* don't close help due to SIGINT */
break;
default:
ret = MSG_NOT_HANDLED;
}