mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] TextField: all text fields use the same draft text buffer
This commit is contained in:
@@ -126,8 +126,11 @@ void MenuController::renameSelectedScript() {
|
||||
ScriptNameCell * myCell = static_cast<ScriptNameCell *>(m_selectableTableView.selectedCell());
|
||||
Container::activeApp()->setFirstResponder(myCell);
|
||||
myCell->setHighlighted(false);
|
||||
myCell->textField()->setEditing(true);
|
||||
myCell->textField()->setCursorLocation(myCell->textField()->text() + strlen(myCell->textField()->text()));
|
||||
TextField * tf = myCell->textField();
|
||||
const char * previousText = tf->text();
|
||||
tf->setEditing(true);
|
||||
tf->setText(previousText);
|
||||
tf->setCursorLocation(tf->text() + strlen(previousText));
|
||||
}
|
||||
|
||||
void MenuController::deleteScript(Script script) {
|
||||
|
||||
Reference in New Issue
Block a user