mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +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
@@ -90,14 +90,6 @@ void CalculationController::tableViewDidChangeSelection(SelectableTableView * t,
|
||||
firstSubCellSelected = myPreviousCell->firstTextSelected();
|
||||
}
|
||||
myCell->selectFirstText(firstSubCellSelected);
|
||||
app()->setFirstResponder(myCell);
|
||||
} else {
|
||||
if (previousSelectedCellX == 1 && previousSelectedCellY >= 0 && previousSelectedCellY <= k_totalNumberOfDoubleBufferRows) {
|
||||
EvenOddDoubleBufferTextCell * myPreviousCell = (EvenOddDoubleBufferTextCell *)t->cellAtLocation(previousSelectedCellX, previousSelectedCellY);
|
||||
if (app()->firstResponder()->commonAncestorWith(myPreviousCell) == myPreviousCell) {
|
||||
app()->setFirstResponder(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -250,7 +242,8 @@ Responder * CalculationController::tabController() const {
|
||||
}
|
||||
|
||||
View * CalculationController::loadView() {
|
||||
SelectableTableView * tableView = (SelectableTableView *)TabTableController::loadView();
|
||||
SelectableTableView * tableView = new SelectableTableView(this, this, 0, 0, Metric::CommonTopMargin, Metric::CommonRightMargin, Metric::CommonBottomMargin, Metric::CommonLeftMargin, this, this, true, true, Palette::WallScreenDark);
|
||||
;
|
||||
m_r2TitleCell = new EvenOddExpressionCell(1.0f, 0.5f);
|
||||
m_columnTitleCell = new EvenOddDoubleBufferTextCell(tableView);
|
||||
for (int i = 0; i < k_maxNumberOfDisplayableRows; i++) {
|
||||
|
||||
Reference in New Issue
Block a user