From b714d9242e1bb0e4aaa3518edbee960682afd063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 9 Apr 2018 12:03:30 +0200 Subject: [PATCH] [apps] Code: when in input loop, handle 'up' event --- apps/code/console_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/code/console_controller.cpp b/apps/code/console_controller.cpp index 6d2a0b363..69fc8ea0f 100644 --- a/apps/code/console_controller.cpp +++ b/apps/code/console_controller.cpp @@ -131,7 +131,7 @@ void ConsoleController::didBecomeFirstResponder() { } bool ConsoleController::handleEvent(Ion::Events::Event event) { - if (event == Ion::Events::Home && inputRunLoopActive()) { + if ((event == Ion::Events::Home || event == Ion::Events::Up) && inputRunLoopActive()) { askInputRunLoopTermination(); // We need to return true here because we want to actually exit from the // input run loop, which requires ending a dispatchEvent cycle.