1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-22 22:49:24 -05:00

Fix mouse hiding on keypresses, which was failing due to the Unicode

patch having done something bizarre to the semantics of TranslateKey.

[originally from svn r1233]
This commit is contained in:
Simon Tatham 2001-09-07 20:18:55 +00:00
parent 25c58b71d1
commit e65095f52b

View File

@ -1864,19 +1864,20 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
if (len == -1) if (len == -1)
return DefWindowProc(hwnd, message, wParam, lParam); return DefWindowProc(hwnd, message, wParam, lParam);
if (len > 0) {
/* /*
* We need not bother about stdin backlogs here, * We need not bother about stdin backlogs
* because in GUI PuTTY we can't do anything about * here, because in GUI PuTTY we can't do
* it anyway; there's no means of asking Windows to * anything about it anyway; there's no means
* hold off on KEYDOWN messages. We _have_ to * of asking Windows to hold off on KEYDOWN
* buffer everything we're sent. * messages. We _have_ to buffer everything
* we're sent.
*/ */
ldisc_send(buf, len); ldisc_send(buf, len);
if (len > 0)
show_mouseptr(0); show_mouseptr(0);
} }
} }
}
return 0; return 0;
case WM_INPUTLANGCHANGE: case WM_INPUTLANGCHANGE:
{ {
@ -3026,6 +3027,7 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
lpage_send(kbd_codepage, cbuf + !left_alt, lpage_send(kbd_codepage, cbuf + !left_alt,
1 + !!left_alt); 1 + !!left_alt);
} }
show_mouseptr(0);
} }
/* This is so the ALT-Numpad and dead keys work correctly. */ /* This is so the ALT-Numpad and dead keys work correctly. */