[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

@@ -57,6 +57,9 @@ bool VariableBoxController::ContentViewController::handleEvent(Ion::Events::Even
char label[3];
putLabelAtIndexInBuffer(selectedRow, label);
const char * editedText = label;
if (!m_textFieldCaller->isEditing()) {
m_textFieldCaller->setEditing(true);
}
m_textFieldCaller->insertTextAtLocation(editedText, m_textFieldCaller->cursorLocation());
m_textFieldCaller->setCursorLocation(m_textFieldCaller->cursorLocation() + strlen(editedText));
m_currentPage = Page::RootMenu;