mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[apps/calculation] Insert text rather than overwrite when selecting a
history cell Change-Id: Ie2cbe92a14a64caa3d1b4eabce6dc6de4baaaa34
This commit is contained in:
@@ -57,9 +57,11 @@ const char * EditExpressionController::textBody() {
|
||||
return ((ContentView *)view())->textField()->text();
|
||||
}
|
||||
|
||||
void EditExpressionController::setTextBody(const char * text) {
|
||||
((ContentView *)view())->textField()->setEditing(true);
|
||||
((ContentView *)view())->textField()->setText(text);
|
||||
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));
|
||||
}
|
||||
|
||||
bool EditExpressionController::handleEvent(Ion::Events::Event event) {
|
||||
|
||||
Reference in New Issue
Block a user