From f0fa0b3b5570ba67f4a83101fe24f5504fb21012 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 5 Jan 2011 17:25:11 +0100 Subject: [PATCH] Fix right-alignment pproblem in WB ICS window Use of Ctrl-R to summon the context menu still trickled through to the default text-edit window routine, and caused right-alignment. This was because the text-edit reacts on keyDown rather than the character event. KeyDown of R with Ctrl pressed is now also intercepted and ignored. --- winboard/winboard.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/winboard/winboard.c b/winboard/winboard.c index 773c4b9..43dfeed 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -6875,6 +6875,7 @@ ConsoleTextSubclass(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) switch (message) { case WM_KEYDOWN: if (!(GetKeyState(VK_CONTROL) & ~1)) break; + if(wParam=='R') return 0; switch (wParam) { case VK_PRIOR: SendMessage(hwnd, EM_LINESCROLL, 0, -999999); -- 1.7.0.4