Ticket #2520: SIGINT generated by Ctrl-g pressing closes file panels.
commitf28fffedba2ee8dec2b0ab2795636bc5b86caed4
authorAndrew Borodin <aborodin@vmail.ru>
Mon, 28 Mar 2011 12:45:50 +0000 (28 16:45 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Fri, 8 Apr 2011 09:42:29 +0000 (8 13:42 +0400)
tree9c3e8a52d78d550db1bc68c7fbb8b08f11a35538
parentba20810fcd1ab48ec2630e0474ca0fdc45d02423
Ticket #2520: SIGINT generated by Ctrl-g pressing closes file panels.

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

The solution: CK_DialogCancel is sent to current dialog via callback, and if
current dialog doesn't handle CK_DialogCancel 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