aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.h')
-rw-r--r--src/nnn.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nnn.h b/src/nnn.h
index d47080b..312473c 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -43,6 +43,8 @@ enum action {
SEL_PREV,
SEL_PGDN,
SEL_PGUP,
+ SEL_CTRL_D,
+ SEL_CTRL_U,
SEL_HOME,
SEL_END,
SEL_CDHOME,
@@ -126,10 +128,12 @@ static struct key bindings[] = {
{ KEY_UP, SEL_PREV },
/* Page down */
{ KEY_NPAGE, SEL_PGDN },
- { CONTROL('D'), SEL_PGDN },
/* Page up */
{ KEY_PPAGE, SEL_PGUP },
- { CONTROL('U'), SEL_PGUP },
+ /* Ctrl+D */
+ { CONTROL('D'), SEL_CTRL_D },
+ /* Ctrl+U */
+ { CONTROL('U'), SEL_CTRL_U },
/* First entry */
{ KEY_HOME, SEL_HOME },
{ 'g', SEL_HOME },