mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
[apps/calculation] Fix error: scroll when copying a history line
Change-Id: I6120c22afd63abe6ac5bf4e264ad7fcc712fe291
This commit is contained in:
@@ -39,14 +39,14 @@ bool HistoryController::handleEvent(Ion::Events::Event event) {
|
||||
HistoryViewCell * selectedCell = (HistoryViewCell *)m_selectableTableView.cellAtLocation(0, focusRow);
|
||||
HistoryViewCell::SubviewType subviewType = selectedCell->selectedSubviewType();
|
||||
EditExpressionController * editController = (EditExpressionController *)parentResponder();
|
||||
m_selectableTableView.deselectTable();
|
||||
app()->setFirstResponder(editController);
|
||||
Calculation * calculation = m_calculationStore->calculationAtIndex(focusRow);
|
||||
if (subviewType == HistoryViewCell::SubviewType::Input) {
|
||||
editController->setTextBody(calculation->inputText());
|
||||
} else {
|
||||
editController->setTextBody(calculation->outputText());
|
||||
}
|
||||
m_selectableTableView.deselectTable();
|
||||
app()->setFirstResponder(editController);
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::EXE) {
|
||||
|
||||
Reference in New Issue
Block a user