[apps/shared] In float parameter controller, stay in editing mode is the

value was refused

Change-Id: I2eca2c745bfbaeafb53de44f6e96f90a89d7925b
This commit is contained in:
Émilie Feral
2017-04-05 14:39:10 +02:00
parent c9f61b1052
commit 6f3b173022
6 changed files with 45 additions and 3 deletions

View File

@@ -70,6 +70,9 @@ bool RangeParameterController::textFieldDidFinishEditing(TextField * textField,
}
void RangeParameterController::tableViewDidChangeSelection(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY) {
if (previousSelectedCellX == t->selectedColumn() && previousSelectedCellY == t->selectedRow()) {
return;
}
if (previousSelectedCellY < numberOfRows()-1 && previousSelectedCellY >= 0 && previousSelectedCellY !=2) {
MessageTableCellWithEditableText * myCell = (MessageTableCellWithEditableText *)t->cellAtLocation(previousSelectedCellX, previousSelectedCellY);
myCell->setEditing(false);