diff options
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 8346cb4764..30157ceb84 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -1058,7 +1058,8 @@ bool yesno( const char *str, bool safe, int safeanswer, bool clear_after, tmp = map->find(tmp)->second; if (safeanswer - && (tmp == ' ' || tmp == 27 || tmp == '\r' || tmp == '\n')) + && (tmp == ' ' || tmp == ESCAPE || tmp == CONTROL('G') + || tmp == '\r' || tmp == '\n')) { tmp = safeanswer; } @@ -1153,7 +1154,7 @@ int yesnoquit( const char* str, bool safe, int safeanswer, bool allow_all, int tmp = getchm(KC_CONFIRM); - if (tmp == CK_ESCAPE || tmp == 'q' || tmp == 'Q') + if (tmp == CK_ESCAPE || tmp == CONTROL('G') || tmp == 'q' || tmp == 'Q') return -1; if ((tmp == ' ' || tmp == '\r' || tmp == '\n') && safeanswer) |