mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 07:10:40 +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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user