diff options
author | Wichert Akkerman <wakkerma@debian.org> | 2001-05-03 23:31:02 +0000 |
---|---|---|
committer | Wichert Akkerman <wakkerma@debian.org> | 2001-05-03 23:31:02 +0000 |
commit | 061ef8da6a60e881dc8938b09986d8cfcb743bfb (patch) | |
tree | b2262ecb50b1c570df1e31fd2ec1953c9247b184 /dselect | |
parent | c421181cac2c241c9998958f521f3203735f5002 (diff) | |
download | dpkg-061ef8da6a60e881dc8938b09986d8cfcb743bfb.tar.gz |
swap j and k keybindings in main menu
Diffstat (limited to 'dselect')
-rw-r--r-- | dselect/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dselect/main.cc b/dselect/main.cc index 4f76a89d2..28577d772 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==' ' || c=='k') { + if (c==C('n') || c==KEY_DOWN || c==' ' || c=='j') { 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=='j') { + c==KEY_BACKSPACE || c==KEY_DC || c=='k') { dme(cursor,0); cursor+= entries-1; cursor %= entries; dme(cursor,1); } else if (c=='\n' || c=='\r' || c==KEY_ENTER) { clear(); refresh(); |