[escher] Improve textfield API (method names)

Change-Id: Ie8cacaa77840780647ce57c2969446b19cba65cc
This commit is contained in:
Émilie Feral
2016-11-14 17:25:00 +01:00
parent 74ee0ec63a
commit 9181f8e8fa
4 changed files with 36 additions and 31 deletions

View File

@@ -93,7 +93,8 @@ Node * VariableBoxController::nodeModel() {
bool VariableBoxController::selectLeaf(Node * selectedNode){
m_listViewController.deselectTable();
const char * editedText = selectedNode->label();
m_textFieldCaller->appendText(editedText);
m_textFieldCaller->insertTextAtLocation(editedText, m_textFieldCaller->cursorLocation());
m_textFieldCaller->setCursorLocation(m_textFieldCaller->cursorLocation() + strlen(editedText));
app()->dismissModalViewController();
return true;
}