allow return to previous view with enter
[lttngtop.git] / src / cursesdisplay.c
index 3d8d4e40dbb17ab9d56447ca0c703d9c6c80a88b..7dfe7ad0937ac2164d530f8aed373573c0c6bfa9 100644 (file)
@@ -904,8 +904,12 @@ void *handle_keyboard(void *p)
                        break;
 
                case 13: /* FIXME : KEY_ENTER ?? */
-                       if (current_view == cpu) {
+                       if (current_view != process_details) {
+                               previous_view = current_view;
                                current_view = process_details;
+                       } else {
+                               current_view = previous_view;
+                               previous_view = process_details;
                        }
                        update_current_view();
                        break;
This page took 0.0224 seconds and 4 git commands to generate.