From: H.G. Muller Date: Wed, 5 Jan 2011 16:25:11 +0000 (+0100) Subject: Fix right-alignment pproblem in WB ICS window X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f0fa0b3b5570ba67f4a83101fe24f5504fb21012;p=xboard.git 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. --- 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);