From: Arnaldo Carvalho de Melo Date: Wed, 19 May 2010 19:03:51 +0000 (-0300) Subject: perf TUI: Make 'space' be an alias to 'PgDn' X-Git-Tag: firefly_0821_release~9833^2~1617^2~25 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=17930b405e0ecdc8ecc4d336377a92950e2de76a;p=firefly-linux-kernel-4.4.55.git perf TUI: Make 'space' be an alias to 'PgDn' Just like if one is using the stdio based pager, or more/less, for that matter. Suggested-by: Peter Zijlstra Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c index 9338d060ee49..051022eb5f43 100644 --- a/tools/perf/util/newt.c +++ b/tools/perf/util/newt.c @@ -383,6 +383,7 @@ static int ui_browser__run(struct ui_browser *self, const char *title, newtFormAddHotKey(self->form, NEWT_KEY_DOWN); newtFormAddHotKey(self->form, NEWT_KEY_PGUP); newtFormAddHotKey(self->form, NEWT_KEY_PGDN); + newtFormAddHotKey(self->form, ' '); newtFormAddHotKey(self->form, NEWT_KEY_HOME); newtFormAddHotKey(self->form, NEWT_KEY_END); @@ -419,6 +420,7 @@ static int ui_browser__run(struct ui_browser *self, const char *title, } break; case NEWT_KEY_PGDN: + case ' ': if (self->first_visible_entry_idx + self->height > self->nr_entries - 1) break;