X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwindow.c;h=96f64999d4705454dee6f95355fbd8f7a929f943;hb=d5aa23c1160e7bf866a0f4ff62c652c8b363a662;hp=3f092ae599dd878422bd4668bc067cec816749dc;hpb=97ca111e2953a18c8f75238d2c5bfb0d6017e4eb;p=PuTTY.git 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;