From: Julien Desfossez Date: Mon, 23 Apr 2012 15:06:44 +0000 (-0400) Subject: Add Mapping for j/k to up/down X-Git-Tag: v0.2~21 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8c05e516f6a15a48e16797311e331ff9df5ff18c;p=lttngtop.git Add Mapping for j/k to up/down Vi aficinados will understand. Signed-off-by: Julien Desfossez --- diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index 82bb810..304419d 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -1195,6 +1195,7 @@ void *handle_keyboard(void *p) while((ch = getch())) { switch(ch) { /* Move the cursor and scroll */ + case 'j': case KEY_DOWN: if (pref_panel_visible) { pref_line_selected++; @@ -1214,6 +1215,7 @@ void *handle_keyboard(void *p) break; case KEY_NPAGE: break; + case 'k': case KEY_UP: if (pref_panel_visible) { if (pref_line_selected > 0)