mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/stats] Handle the upperleft cell navigation in calculation
This commit is contained in:
15
apps/statistics/calculation_selectable_table_view.cpp
Normal file
15
apps/statistics/calculation_selectable_table_view.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "calculation_selectable_table_view.h"
|
||||
|
||||
namespace Statistics {
|
||||
|
||||
bool CalculationSelectableTableView::handleEvent(Ion::Events::Event event) {
|
||||
if (event == Ion::Events::Up && selectedColumn() == 0 && selectedRow() == 1) {
|
||||
return false;
|
||||
}
|
||||
if (event == Ion::Events::Left && selectedColumn() == 1 && selectedRow() == 0) {
|
||||
return selectCellAtLocation(0, 1);
|
||||
}
|
||||
return SelectableTableView::handleEvent(event);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user