[apps] Code: when in input loop, handle 'up' event

This commit is contained in:
Émilie Feral
2018-04-09 12:03:30 +02:00
committed by Ecco
parent 9289928fff
commit b714d9242e

View File

@@ -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.