mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[apps/code] When OK or EXE on empty python input loop, stop the input
This commit is contained in:
@@ -263,7 +263,11 @@ bool ConsoleController::textFieldShouldFinishEditing(TextField * textField, Ion:
|
||||
}
|
||||
|
||||
bool ConsoleController::textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) {
|
||||
if (event == Ion::Events::Up && m_inputRunLoopActive) {
|
||||
if (m_inputRunLoopActive
|
||||
&& (event == Ion::Events::Up
|
||||
|| event == Ion::Events::OK
|
||||
|| event == Ion::Events::EXE))
|
||||
{
|
||||
m_inputRunLoopActive = false;
|
||||
/* We need to return true here because we want to actually exit from the
|
||||
* input run loop, which requires ending a dispatchEvent cycle. */
|
||||
|
||||
Reference in New Issue
Block a user