From 0f4b4c95b2e820fcc3dc1e92e3d8b3e59d73a307 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 5 Jan 2004 18:30:08 +0000 Subject: [PATCH] fix backspace repeat --- panda/src/windisplay/winGraphicsWindow.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/panda/src/windisplay/winGraphicsWindow.cxx b/panda/src/windisplay/winGraphicsWindow.cxx index ddb521137d..8f86f29eb3 100644 --- a/panda/src/windisplay/winGraphicsWindow.cxx +++ b/panda/src/windisplay/winGraphicsWindow.cxx @@ -952,7 +952,6 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { // for handle_keystroke). if ((lparam & 0x40000000) == 0) { POINT point; - GetCursorPos(&point); ScreenToClient(hwnd, &point); handle_keypress(lookup_key(wparam), point.x, point.y, @@ -982,6 +981,15 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { CloseClipboard(); } } + + } else { + // Actually, for now we'll respect the repeat anyway, just + // so we support backspace properly. Rethink later. + POINT point; + GetCursorPos(&point); + ScreenToClient(hwnd, &point); + handle_keypress(lookup_key(wparam), point.x, point.y, + get_message_time()); } break;