diff options
Diffstat (limited to 'tools/perf/util/newt.c')
-rw-r--r-- | tools/perf/util/newt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c index 094887f45d05..139eb1a16cd8 100644 --- a/tools/perf/util/newt.c +++ b/tools/perf/util/newt.c | |||
@@ -837,9 +837,10 @@ int hists__browse(struct hists *self, const char *helpline, const char *input_na | |||
837 | if (es.reason == NEWT_EXIT_HOTKEY) { | 837 | if (es.reason == NEWT_EXIT_HOTKEY) { |
838 | if (toupper(es.u.key) == 'A') | 838 | if (toupper(es.u.key) == 'A') |
839 | goto do_annotate; | 839 | goto do_annotate; |
840 | if (es.u.key == NEWT_KEY_ESCAPE || | 840 | if (toupper(es.u.key) == 'Q' || |
841 | toupper(es.u.key) == 'Q' || | 841 | es.u.key == CTRL('c')) |
842 | es.u.key == CTRL('c')) { | 842 | break; |
843 | if (es.u.key == NEWT_KEY_ESCAPE) { | ||
843 | if (dialog_yesno("Do you really want to exit?")) | 844 | if (dialog_yesno("Do you really want to exit?")) |
844 | break; | 845 | break; |
845 | else | 846 | else |