From: H.G. Muller Date: Sun, 2 Jan 2011 13:10:02 +0000 (+0100) Subject: Allow starting a variation from keyboard entry in WB-JAWS X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9141872e84a1ce7db0c62539d23c6a3f105dd8f8;p=xboard.git Allow starting a variation from keyboard entry in WB-JAWS The status of the shift key is remembered when space is pressed to select a board square. --- diff --git a/winboard/jaws.c b/winboard/jaws.c index d2a7740..bf7dab2 100644 --- a/winboard/jaws.c +++ b/winboard/jaws.c @@ -1275,6 +1275,7 @@ NiceTime(int x) KeyboardEvent(hwnd, message, wParam, lParam);\ break;\ case VK_SPACE:\ + shiftKey = GetKeyState(VK_SHIFT) < 0;\ KeyboardMove(hwnd, message, wParam, lParam);\ break;\ }\ diff --git a/winboard/winboard.c b/winboard/winboard.c index 3e889d8..bf84aaa 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -6414,6 +6414,7 @@ TypeInMoveDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) case WM_COMMAND: switch (LOWORD(wParam)) { case IDOK: + shiftKey = GetKeyState(VK_SHIFT) < 0; // [HGM] remember last shift status GetDlgItemText(hDlg, OPT_Move, move, sizeof(move)); { int n; Board board;