summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-10-14 09:37:38 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-10-14 12:48:50 -0300
commit7296d66aca60a71076a5f0ffab39730e7788590f (patch)
treec8381df205b1250797bf852ae5b9968be2afba55 /tools
parent437cfe7a37df07e2201036fb0903cadae6b08e74 (diff)
perf annotate browser: Exit when pressing ESC or the left arrow
We lost that functionality on ed7e566, restore it. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-z8eb8af2x46x42lgpn1ustid@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/ui/browsers/annotate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browsers/annotate.c b/tools/perf/util/ui/browsers/annotate.c
index cbefb4fc99c4..84315c999284 100644
--- a/tools/perf/util/ui/browsers/annotate.c
+++ b/tools/perf/util/ui/browsers/annotate.c
@@ -285,6 +285,8 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx,
timer, arg, delay_secs);
}
break;
+ case NEWT_KEY_LEFT:
+ case NEWT_KEY_ESCAPE:
case 'q':
case CTRL('c'):
goto out;