mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps][escher] Add methods 'handleEventWithText' in TextField and
TextArea to fix bug in probability (adding a toolbox text from the calculations controller)
This commit is contained in:
committed by
EmilieNumworks
parent
7fcf77ce23
commit
576caa039f
@@ -276,12 +276,7 @@ bool ConsoleController::textFieldDidReceiveEvent(TextField * textField, Ion::Eve
|
||||
if (pythonText == nullptr) {
|
||||
return false;
|
||||
}
|
||||
if (textField->insertTextAtLocation(pythonText, textField->cursorLocation())) {
|
||||
textField->setCursorLocation(textField->cursorLocation()+strlen(pythonText));
|
||||
if (pythonText[strlen(pythonText)-1] == ')') {
|
||||
textField->setCursorLocation(textField->cursorLocation()-1);
|
||||
}
|
||||
}
|
||||
textField->handleEventWithText(pythonText);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user