[apps] Switch to mode editing when clicking on toolbox or variable box

Change-Id: Iff6a00234ac95c6519fba8046149d2f645f8ca86
This commit is contained in:
Émilie Feral
2017-02-07 17:27:55 +01:00
parent 24fc727b53
commit 9d6a945fbe
5 changed files with 11 additions and 4 deletions

View File

@@ -58,6 +58,9 @@ bool ToolboxController::selectLeaf(Node * selectedNode){
m_listViewController.deselectTable();
ToolboxNode * node = (ToolboxNode *)selectedNode;
const char * editedText = node->label();
if (!m_textFieldCaller->isEditing()) {
m_textFieldCaller->setEditing(true);
}
m_textFieldCaller->insertTextAtLocation(editedText, m_textFieldCaller->cursorLocation());
int cursorDelta = 0;
int editedTextLength = strlen(editedText);