fix(X10): Simulated page up in menu toolbar (#2543)

Fixes #2542
This commit is contained in:
Raphael Coeffic
2022-10-14 10:46:19 +10:00
committed by GitHub
parent 1766b7d6c0
commit 584e194388
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -589,11 +589,8 @@ void ModelLabelsWindow::onEvent(event_t event)
std::set<uint32_t> sellist;
int select = 0;
int rowcount = lblselector->getRowCount();
#if defined(KEYS_GPIO_REG_PGUP)
if (event == EVT_KEY_BREAK(KEY_PGDN)) {
#else
if (event == EVT_KEY_BREAK(KEY_PGDN)) {
#endif
if(curSel.size())
select = (*curSel.rbegin() + 1) % rowcount;
} else {