[code] In lock-on-console mode: Enable interrupting input loop and execution when clicking on 'home' or 'back'

This commit is contained in:
Émilie Feral
2018-06-13 09:59:11 +02:00
committed by EmilieNumworks
parent e304da5ee1
commit 769bc1ad3c

View File

@@ -170,6 +170,10 @@ bool ConsoleController::handleEvent(Ion::Events::Event event) {
}
#if EPSILON_GETOPT
if (m_locked && (event == Ion::Events::Home || event == Ion::Events::Back)) {
if (inputRunLoopActive()) {
askInputRunLoopTermination();
interrupt();
}
return true;
}
#endif