From: Wichert Akkerman Date: Mon, 16 Apr 2001 01:07:38 +0000 (+0000) Subject: also allow j and k to scroll to methrough main menu X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7c2afd40d1e8b358530ee21d57d9f7363be5258;p=dpkg also allow j and k to scroll to methrough main menu --- diff --git a/dselect/main.cc b/dselect/main.cc index 04f15090..fc610d68 100644 --- a/dselect/main.cc +++ b/dselect/main.cc @@ -266,10 +266,10 @@ urqresult urq_menu(void) { c= getch(); while (c == ERR && errno == EINTR); if (c==ERR) ohshite(_("failed to getch in main menu")); - if (c==C('n') || c==KEY_DOWN || c==' ') { + if (c==C('n') || c==KEY_DOWN || c==' ' || c=='k') { dme(cursor,0); cursor++; cursor %= entries; dme(cursor,1); } else if (c==C('p') || c==KEY_UP || c==C('h') || - c==KEY_BACKSPACE || c==KEY_DC) { + c==KEY_BACKSPACE || c==KEY_DC || c=='j') { dme(cursor,0); cursor+= entries-1; cursor %= entries; dme(cursor,1); } else if (c=='\n' || c=='\r' || c==KEY_ENTER) { clear(); refresh();