Ticket #2520: SIGINT generated by Ctrl-g pressing closes file panels.
commitf83bdadfa8058cc2e615e2ab1bf20d148f101674
authorAndrew Borodin <aborodin@vmail.ru>
Mon, 28 Mar 2011 12:45:50 +0000 (28 16:45 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Wed, 30 Mar 2011 12:17:16 +0000 (30 16:17 +0400)
treed3de51ee46b09164448c92f5cad4368cda8991cf
parente1c933e1cb36b2b68ddfcd35b9b4792587df17a1
Ticket #2520: SIGINT generated by Ctrl-g pressing closes file panels.

When SIGINT signal is raised, the CK_Cancel message is handled by
dlg_execute_cmd() and midnight_dlg is closed.

The solution: CK_Cancel is sent to current dialog via callback, and if
current dialog doesn't handle CK_Cancel message, then handle it with common
way using dlg_execute_cmd().

Since Ctrl-g is used to generate SIGINT in MC, remove this shortcut from
all sections of keymaps except the [dialog] section.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/widget/dialog.c