From 9141872e84a1ce7db0c62539d23c6a3f105dd8f8 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 2 Jan 2011 14:10:02 +0100 Subject: [PATCH] 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. --- winboard/jaws.c | 1 + winboard/winboard.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) 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; -- 1.7.0.4