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:
8
window.c
8
window.c
@ -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;
|
||||
|
Reference in New Issue
Block a user