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

Ctrl-PgUp and Ctrl-PgDn now scroll by one line on Unix and Windows

[originally from svn r2582]
This commit is contained in:
Owen Dunn
2003-01-14 11:24:26 +00:00
parent 527c081a2e
commit 5c7bc54022
2 changed files with 16 additions and 0 deletions

View File

@ -3290,10 +3290,18 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
SendMessage(hwnd, WM_VSCROLL, SB_PAGEUP, 0);
return 0;
}
if (wParam == VK_PRIOR && shift_state == 2) {
SendMessage(hwnd, WM_VSCROLL, SB_LINEUP, 0);
return 0;
}
if (wParam == VK_NEXT && shift_state == 1) {
SendMessage(hwnd, WM_VSCROLL, SB_PAGEDOWN, 0);
return 0;
}
if (wParam == VK_NEXT && shift_state == 2) {
SendMessage(hwnd, WM_VSCROLL, SB_LINEDOWN, 0);
return 0;
}
if (wParam == VK_INSERT && shift_state == 1) {
term_do_paste(term);
return 0;