From: H.G. Muller Date: Fri, 23 Oct 2009 04:33:07 +0000 (-0700) Subject: This patch adds to the characters that cause an automatic switch to the ICS... X-Git-Tag: v4.4.1.20091022~1 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=8e0e2f1c14e76ea660f7bff6a104baed0f0048df This patch adds to the characters that cause an automatic switch to the ICS console when typed to the board window. --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 31afd62..24fd967 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -5428,7 +5428,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) JAWS_ALT_INTERCEPT - if (appData.icsActive && (char)wParam > ' ' && !((char)wParam >= '1' && (char)wParam <= '9')) { + if (appData.icsActive && ((char)wParam == '\r' || (char)wParam > ' ' && !((char)wParam >= '1' && (char)wParam <= '9'))) { // [HGM] movenum: for non-zero digits we always do type-in dialog HWND h = GetDlgItem(hwndConsole, OPT_ConsoleInput); if (IsIconic(hwndConsole)) ShowWindow(hwndConsole, SW_RESTORE);