[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:
Émilie Feral
2018-02-19 11:18:58 +01:00
committed by EmilieNumworks
parent 7fcf77ce23
commit 576caa039f
24 changed files with 144 additions and 147 deletions

View File

@@ -61,8 +61,7 @@ const char * EditExpressionController::textBody() {
void EditExpressionController::insertTextBody(const char * text) {
TextField * tf = ((ContentView *)view())->textField();
tf->setEditing(true, false);
tf->insertTextAtLocation(text, tf->cursorLocation());
tf->setCursorLocation(tf->cursorLocation() + strlen(text));
tf->handleEventWithText(text);
}
bool EditExpressionController::handleEvent(Ion::Events::Event event) {