X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/91eea9449dda53b6d5da084ad41aaa6df9fe86a3..cf6ddb95b1f75d3cefc23ddc18a29293d912bf22:/windows/window.c diff --git a/windows/window.c b/windows/window.c index 3f092ae5..96f64999 100644 --- a/windows/window.c +++ b/windows/window.c @@ -3811,6 +3811,10 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam, SendMessage(hwnd, WM_VSCROLL, SB_LINEDOWN, 0); return 0; } + if ((wParam == VK_PRIOR || wParam == VK_NEXT) && shift_state == 3) { + term_scroll_to_selection(term, (wParam == VK_PRIOR ? 0 : 1)); + return 0; + } if (wParam == VK_INSERT && shift_state == 1) { request_paste(NULL); return 0;