summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-02-12 13:52:36 -0300
committerandmarti1424 <andmarti@gmail.com>2017-02-12 13:52:36 -0300
commitfc4c39410d5db10e0af5f7698f66e54342f62053 (patch)
tree9a44b1187401ec0c3455140ab30ea203ad0bdb06
parent2c55439a33935119d5a9581ae9f4ecc9271c031c (diff)
Added HOME, END, PAGEUP and PAGEDOWN keys in help screen
-rw-r--r--src/help.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/help.c b/src/help.c
index 0d736f6..2196d56 100644
--- a/src/help.c
+++ b/src/help.c
@@ -130,15 +130,18 @@ void help() {
break;
case ctl('b'):
+ case OKEY_PGUP:
if (delta - LINES/2 > 0) delta -= LINES/2;
else if (delta) delta = 0;
break;
case ctl('f'):
+ case OKEY_PGDOWN:
if (delta + LINES + LINES/2 < max) delta += LINES/2;
else if (max > delta + LINES) delta = max - 1 - LINES;
break;
+ case OKEY_END:
case 'G':
delta = max - LINES + RESROW;
break;
@@ -150,6 +153,7 @@ void help() {
if (c != 'g') break;
case ctl('a'):
+ case OKEY_HOME:
delta = 0;
break;