perf ui: Make ui_browser__run exit on unhandled hot keys
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 15 Jul 2010 10:24:30 +0000 (07:24 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 17 Jul 2010 18:44:57 +0000 (15:44 -0300)
commitb66ecd97c1866f9a869643a5b69a984d5ce8f8f1
treefb2a82cb4e1131b590b892197168d11336ba6fc6
parent63f20e744a595444f7ab1d47a29c5b74830feb47
perf ui: Make ui_browser__run exit on unhandled hot keys

Right now ENTER doesn't always exits the newt tree widget, as it is used
for expanding/collapsing branches, but with the new tree widget being
developed we need to regain control to handle it, expanding/collapsing
branches.

In fact its really up to the ui_browser user to state what extra keys
should stop ui_browser__run, and it should handle just the ones needed
for basic browsing.

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