[Feature] Add Toolbox / Table shortcuts (#327)

This commit is contained in:
Antonin Loubiere
2020-06-12 23:58:49 +02:00
committed by GitHub
parent c12d3bbd33
commit 5f15b37918
2 changed files with 18 additions and 0 deletions

View File

@@ -140,6 +140,12 @@ bool NestedMenuController::handleEventForRow(Ion::Events::Event event, int rowIn
if ((event == Ion::Events::Back || event == Ion::Events::Left) && depth > 0) {
return returnToPreviousMenu();
}
if (event == Ion::Events::ShiftLeft && depth > 0) {
for (int i = depth; i > 0; i--) {
returnToPreviousMenu();
}
return true;
}
if (selectedRow() < 0) {
return false;
}