Skip to content

Commit

Permalink
Address #1279, handle "pgup"/"pgdn" keys in Ctrl+P message browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
flambard-took committed May 18, 2019
1 parent 660a65d commit 9ef3c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/c-xtra2.c
Expand Up @@ -159,14 +159,14 @@ void do_cmd_messages(void)
}

/* Recall 20 older messages */
if ((k == 'p') || (k == KTRL('P')) || (k == ' '))
if ((k == 'p') || (k == KTRL('P')) || (k == ' ') || (k == '9'))
{
/* Go older if legal */
if (i + 20 < n) i += 20;
}

/* Recall 20 newer messages */
if ((k == 'n') || (k == KTRL('N')))
if ((k == 'n') || (k == KTRL('N')) || (k == '3'))
{
/* Go newer (if able) */
i = (i >= 20) ? (i - 20) : 0;
Expand Down

0 comments on commit 9ef3c17

Please sign in to comment.