[apps/code] Shift + OK don't quit toolbox

This commit is contained in:
Laury
2022-01-15 21:33:32 +01:00
parent f591816122
commit e575ffc7ce
13 changed files with 30 additions and 20 deletions

View File

@@ -156,8 +156,11 @@ bool NestedMenuController::handleEventForRow(Ion::Events::Event event, int rowIn
if ((event == Ion::Events::OK || event == Ion::Events::EXE || event == Ion::Events::Right) && typeAtLocation(0, selectedRow()) == NodeCellType) {
return selectSubMenu(rowIndex);
}
if (canStayInMenu() && ((event == Ion::Events::ShiftOK || event == Ion::Events::ShiftEXE) && typeAtLocation(0, selectedRow()) == LeafCellType)) {
return selectLeaf(rowIndex, false);
}
if ((event == Ion::Events::OK || event == Ion::Events::EXE) && typeAtLocation(0, selectedRow()) == LeafCellType) {
return selectLeaf(rowIndex);
return selectLeaf(rowIndex, true);
}
return false;
}