top: let's honor <Esc> key on color mapping screen too

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2018-06-13 00:00:00 -05:00 committed by Craig Small
parent 291d98ee50
commit e691f75b81
2 changed files with 3 additions and 2 deletions

View File

@ -4360,6 +4360,7 @@ signify_that:
if (Frames_signal) goto signify_that;
key = iokey(1);
if (key < 1) goto signify_that;
if (key == kbd_ESC) break;
switch (key) {
case 'S':
@ -4418,7 +4419,7 @@ signify_that:
capsmk(w);
} while (key != kbdAPPLY && key != kbdABORT);
if (key == kbdABORT) wins_clrhlp(w, 0);
if (key == kbdABORT || key == kbd_ESC) wins_clrhlp(w, 0);
#undef kbdABORT
#undef kbdAPPLY

View File

@ -632,7 +632,7 @@ static void build_uniq_nlstab (void) {
" 4~2 = blue, ~1 5~2 = magenta,~1 6~2 = cyan, ~1 7~2 = white\n"
"\n"
"3) Then use these keys when finished:\n"
" 'q' to abort changes to window '~1%s~2'\n"
" 'q' or <Esc> to abort changes to window '~1%s~2'\n"
" 'a' or 'w' to commit & change another, <Enter> to commit and end ");
/* Translation Hint: