]> granicus.if.org Git - nethack/commitdiff
fix reported beta-tester problem of not being able
authornethack.allison <nethack.allison>
Sun, 18 Aug 2002 00:16:43 +0000 (00:16 +0000)
committernethack.allison <nethack.allison>
Sun, 18 Aug 2002 00:16:43 +0000 (00:16 +0000)
to select capital letter at some prompts.

win/win32/mswproc.c

index b9e872b513c758e5c58167cac84b3db2d84b34d5..d36723e95d04d5ba3d9c5e9c4bfc79120c8e627c 100644 (file)
@@ -1429,7 +1429,10 @@ char mswin_yn_function(const char *question, const char *choices,
     /* Only here if main window is not present */
     while (result<0) {
         ShowCaret(mswin_hwnd_from_winid(WIN_MESSAGE));
-       ch=lowc(mswin_nhgetch());
+       ch=mswin_nhgetch();
+       if (choices == ynchars || choices == ynqchars ||
+               choices == ynaqchars || choices == ynNaqchars)
+           ch = lowc(ch);
         HideCaret(mswin_hwnd_from_winid(WIN_MESSAGE));
        if (ch=='\033') {
            result=yn_esc_map;