fix backspace repeat

This commit is contained in:
David Rose 2004-01-05 18:30:08 +00:00
parent 0c338d3c3d
commit 0f4b4c95b2
1 changed files with 9 additions and 1 deletions

View File

@ -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;