From f16f1fc17cf129517571a29fbe61afc00dab2434 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Fri, 25 Feb 2011 09:30:29 -0300 Subject: [PATCH] --- yaml --- r: 234471 b: refs/heads/master c: c16bfe9ac389b13a37ff617a09682ecc0685960f h: refs/heads/master i: 234469: ff959efaf4a6c4fd921396c0f659af4b954cde84 234467: 0b8de3e29deb2b6f80e5882835052bb6f0204ef0 234463: 5ffca27beca584a8c45d99b052b8cab445c2ca99 v: v3 --- [refs] | 2 +- trunk/tools/perf/util/ui/browsers/top.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 9d2d7c26148a..9f03567dc270 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 170ae6bc24e1d7f9bd921a484ec9ea2825497970 +refs/heads/master: c16bfe9ac389b13a37ff617a09682ecc0685960f diff --git a/trunk/tools/perf/util/ui/browsers/top.c b/trunk/tools/perf/util/ui/browsers/top.c index 2f47224426b6..e9381ec9bfb1 100644 --- a/trunk/tools/perf/util/ui/browsers/top.c +++ b/trunk/tools/perf/util/ui/browsers/top.c @@ -10,6 +10,7 @@ #include "../../annotate.h" #include "../helpline.h" #include "../libslang.h" +#include "../util.h" #include "../../evlist.h" #include "../../hist.h" #include "../../sort.h" @@ -174,6 +175,12 @@ static int perf_top_browser__run(struct perf_top_browser *browser) if (browser->selection) perf_top_browser__annotate(browser); break; + case NEWT_KEY_LEFT: + continue; + case NEWT_KEY_ESCAPE: + if (!ui__dialog_yesno("Do you really want to exit?")) + continue; + /* Fall thru */ default: goto out; }