Scroll by full pages with PageUp/PageDown
parent
31a2af0c65
commit
e8f40a2daf
|
@ -308,9 +308,9 @@ Switch to window by number 0\(en9.
|
|||
.It Ic Down
|
||||
Scroll window down by one line.
|
||||
.It Ic PageDown
|
||||
Scroll window down by half a page.
|
||||
Scroll window down by one page.
|
||||
.It Ic PageUp
|
||||
Scroll window up by half a page.
|
||||
Scroll window up by one page.
|
||||
.It Ic Up
|
||||
Scroll window up by one line.
|
||||
.El
|
||||
|
|
4
ui.c
4
ui.c
|
@ -430,8 +430,8 @@ static void keyCode(wchar_t code) {
|
|||
switch (code) {
|
||||
break; case KEY_UP: windowScroll(win, -1);
|
||||
break; case KEY_DOWN: windowScroll(win, +1);
|
||||
break; case KEY_PPAGE: windowScroll(win, -logHeight() / 2);
|
||||
break; case KEY_NPAGE: windowScroll(win, +logHeight() / 2);
|
||||
break; case KEY_PPAGE: windowScroll(win, -(logHeight() - 1));
|
||||
break; case KEY_NPAGE: windowScroll(win, +(logHeight() - 1));
|
||||
break; case KEY_LEFT: edit(win->tag, EditLeft, 0);
|
||||
break; case KEY_RIGHT: edit(win->tag, EditRight, 0);
|
||||
break; case KEY_HOME: edit(win->tag, EditHome, 0);
|
||||
|
|
Loading…
Reference in New Issue