perf ui: Make SPACE work as PGDN in all browsers
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 Aug 2010 18:09:02 +0000 (15:09 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 Aug 2010 18:09:02 +0000 (15:09 -0300)
Not just on the annotate one.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browser.c
tools/perf/util/ui/browsers/annotate.c

index edbb7dd9eb2eafb45f6967c22fad90c39902e03d..83d57487f6ef5fef99a3057c8f8486803035706a 100644 (file)
@@ -169,6 +169,7 @@ int ui_browser__show(struct ui_browser *self, const char *title)
        newtFormAddHotKey(self->form, NEWT_KEY_PGDN);
        newtFormAddHotKey(self->form, NEWT_KEY_HOME);
        newtFormAddHotKey(self->form, NEWT_KEY_END);
+       newtFormAddHotKey(self->form, ' ');
        newtFormAddComponent(self->form, self->sb);
        return 0;
 }
index 763592b09d74efea9e5aad995150b8fa39e2dbde..d2156aebd4f1b18ebb19b0f3e101f7068b8b18a2 100644 (file)
@@ -178,7 +178,6 @@ int hist_entry__tui_annotate(struct hist_entry *self)
 
        browser.b.width += 18; /* Percentage */
        ui_browser__show(&browser.b, self->ms.sym->name);
-       newtFormAddHotKey(browser.b.form, ' ');
        ret = ui_browser__run(&browser.b, &es);
        newtFormDestroy(browser.b.form);
        newtPopWindow();