[apps] Event 'right' on chevron cells behaves as OK and 'left' on the

next cell as 'back'

Change-Id: I2470659d8237373b21ad106c79cc5f8945f0edb5
This commit is contained in:
Émilie Feral
2017-06-01 16:41:55 +02:00
parent 62fdda45bf
commit ce09d2f9c4
12 changed files with 64 additions and 24 deletions

View File

@@ -36,12 +36,18 @@ void ValuesParameterController::willDisplayCellForIndex(HighlightCell * cell, in
}
void ValuesParameterController::didBecomeFirstResponder() {
selectCellAtLocation(0, 0);
if (selectedRow() < 0) {
selectCellAtLocation(0, 0);
}
app()->setFirstResponder(&m_selectableTableView);
}
bool ValuesParameterController::handleEvent(Ion::Events::Event event) {
if (event == Ion::Events::OK || event == Ion::Events::EXE) {
#if COPY_COLUMN
if (event == Ion::Events::OK || event == Ion::Events::EXE || (event == Ion::Events::Right && selectedRow() == 2)) {
#else
if (event == Ion::Events::OK || event == Ion::Events::EXE || (event == Ion::Events::Right && selectedRow() == 1)) {
#endif
switch (selectedRow()) {
case 0:
{