mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] In variable controller, enable to delete variables in context
Change-Id: Ifcd9b12c08d2e2c998ba3628b71a7550264e9d6d
This commit is contained in:
@@ -75,6 +75,18 @@ bool VariableBoxController::ContentViewController::handleEvent(Ion::Events::Even
|
||||
app()->dismissModalViewController();
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::Backspace && m_currentPage != Page::RootMenu) {
|
||||
if (m_currentPage == Page::Scalar) {
|
||||
const Symbol symbol = Symbol('A'+selectedRow());
|
||||
m_context->setExpressionForSymbolName(nullptr, &symbol);
|
||||
}
|
||||
if (m_currentPage == Page::Matrix) {
|
||||
const Symbol symbol = Symbol::matrixSymbol('0'+(char)selectedRow());
|
||||
m_context->setExpressionForSymbolName(nullptr, &symbol);
|
||||
}
|
||||
m_selectableTableView.reloadData();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user