--- fdisk/cfdisk.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c index 1846e11..0405e12 100644 --- a/fdisk/cfdisk.c +++ b/fdisk/cfdisk.c @@ -137,7 +137,9 @@ #define TAB '\011' #define REDRAWKEY '\014' /* ^L */ #define UPKEY '\020' /* ^P */ +#define UPKEYVI '\153' /* k */ #define DOWNKEY '\016' /* ^N */ +#define DOWNKEYVI '\152' /* j */ /* Display units */ #define GIGABYTES 1 @@ -1270,6 +1272,7 @@ menuSelect( int y, int x, struct MenuItem *menuItems, int itemLength, key = MENU_RIGHT; break; case 'D': /* Left arrow */ + case 'Z': /* Shift Tab */ key = MENU_LEFT; break; default: @@ -1286,9 +1289,9 @@ menuSelect( int y, int x, struct MenuItem *menuItems, int itemLength, swallows these */ if (key == TAB) key = MENU_RIGHT; - if (key == UPKEY) /* ^P */ + if (key == UPKEY || key == UPKEYVI) /* ^P or k */ key = MENU_UP; - if (key == DOWNKEY) /* ^N */ + if (key == DOWNKEY || key == DOWNKEYVI) /* ^N or j */ key = MENU_DOWN; if (key == MENU_UP) { -- 1.6.4.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html