mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[escher] SelectableTableView handles setting the ccell as first
responder if needed
This commit is contained in:
committed by
EmilieNumworks
parent
b47cdbb87a
commit
077a95197e
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user