diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-19 15:03:51 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-20 10:35:22 -0400 |
commit | 17930b405e0ecdc8ecc4d336377a92950e2de76a (patch) | |
tree | bbd6d3f7e73f2047fcc95efa7c9fe9cd535b6c9e /tools | |
parent | dfacc4d6c98b89609250269f518c1f54c30454ef (diff) |
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 <a.p.zijlstra@chello.nl>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/newt.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
383 | newtFormAddHotKey(self->form, NEWT_KEY_DOWN); | 383 | newtFormAddHotKey(self->form, NEWT_KEY_DOWN); |
384 | newtFormAddHotKey(self->form, NEWT_KEY_PGUP); | 384 | newtFormAddHotKey(self->form, NEWT_KEY_PGUP); |
385 | newtFormAddHotKey(self->form, NEWT_KEY_PGDN); | 385 | newtFormAddHotKey(self->form, NEWT_KEY_PGDN); |
386 | newtFormAddHotKey(self->form, ' '); | ||
386 | newtFormAddHotKey(self->form, NEWT_KEY_HOME); | 387 | newtFormAddHotKey(self->form, NEWT_KEY_HOME); |
387 | newtFormAddHotKey(self->form, NEWT_KEY_END); | 388 | newtFormAddHotKey(self->form, NEWT_KEY_END); |
388 | 389 | ||
@@ -419,6 +420,7 @@ static int ui_browser__run(struct ui_browser *self, const char *title, | |||
419 | } | 420 | } |
420 | break; | 421 | break; |
421 | case NEWT_KEY_PGDN: | 422 | case NEWT_KEY_PGDN: |
423 | case ' ': | ||
422 | if (self->first_visible_entry_idx + self->height > self->nr_entries - 1) | 424 | if (self->first_visible_entry_idx + self->height > self->nr_entries - 1) |
423 | break; | 425 | break; |
424 | 426 | ||