Skip to content

Commit

Permalink
up/down arrows as synonym for left/right
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed Jul 11, 2019
1 parent 1dcbc48 commit 4a0dc5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snooper.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,14 +542,14 @@ int DisplayIpid(unsigned ipid) {
c = ReadKey();
if (c == 0x1b || c == 'Q' || c == 'q')
return 0;
if (c == LEFT) {
if (c == LEFT || c == UP) {
if (page == 0)
page = MAX_PAGE;
else
--page;
break;
}
if (c == RIGHT) {
if (c == RIGHT || c == DOWN) {
if (page == MAX_PAGE)
page = 0;
else
Expand Down Expand Up @@ -790,14 +790,14 @@ void DisplayMain(void) {
c = ReadKey();
if (c == 'Q' || c == 'q' || c == ESC)
return;
if (c == LEFT) {
if (c == LEFT || c == UP) {
if (page == 0)
page = MAX_PAGE;
else
--page;
break;
}
if (c == RIGHT) {
if (c == RIGHT || c == DOWN) {
if (page == MAX_PAGE)
page = 0;
else
Expand Down

0 comments on commit 4a0dc5e

Please sign in to comment.