[escher] SelectableTableView handles setting the ccell as first

responder if needed
This commit is contained in:
Émilie Feral
2017-12-19 12:18:33 +01:00
committed by EmilieNumworks
parent b47cdbb87a
commit 077a95197e
25 changed files with 111 additions and 121 deletions

View File

@@ -198,7 +198,6 @@ void ConsoleController::willDisplayCellAtLocation(HighlightCell * cell, int i, i
void ConsoleController::tableViewDidChangeSelection(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY) {
if (t->selectedRow() == m_consoleStore.numberOfLines()) {
m_editCell.setEditing(true);
app()->setFirstResponder(&m_editCell);
return;
}
if (t->selectedRow()>-1) {
@@ -208,7 +207,6 @@ void ConsoleController::tableViewDidChangeSelection(SelectableTableView * t, int
previousCell->reloadCell();
}
ConsoleLineCell * selectedCell = (ConsoleLineCell *)(t->selectedCell());
app()->setFirstResponder(selectedCell);
selectedCell->reloadCell();
}
}