mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/calculation/history_controller] Factor handleEvent
This commit is contained in:
committed by
Émilie Feral
parent
f3bcedd43d
commit
a3265996fe
@@ -124,11 +124,7 @@ bool HistoryController::handleEvent(Ion::Events::Event event) {
|
||||
Container::activeApp()->setFirstResponder(parentResponder());
|
||||
return true;
|
||||
}
|
||||
if (focusRow > 0) {
|
||||
m_selectableTableView.selectCellAtLocation(0, focusRow-1);
|
||||
} else {
|
||||
m_selectableTableView.selectCellAtLocation(0, 0);
|
||||
}
|
||||
m_selectableTableView.selectCellAtLocation(0, (focusRow > 0) * (focusRow - 1));
|
||||
if (subviewType == SubviewType::Input) {
|
||||
tableViewDidChangeSelection(&m_selectableTableView, 0, selectedRow());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user