mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Fix CMS Menu Navigation
This commit is contained in:
parent
6433aaa688
commit
8f4880409d
1 changed files with 2 additions and 3 deletions
|
@ -902,11 +902,10 @@ STATIC_UNIT_TESTED uint16_t cmsHandleKey(displayPort_t *pDisplay, cms_key_e key)
|
|||
if ((key == CMS_KEY_UP) && (!osdElementEditing)) {
|
||||
currentCtx.cursorRow--;
|
||||
|
||||
// Skip non-title labels
|
||||
if ((pageTop + currentCtx.cursorRow)->type == OME_Label && currentCtx.cursorRow > 0) {
|
||||
// Skip non-title labels and strings
|
||||
while (((pageTop + currentCtx.cursorRow)->type == OME_Label || (pageTop + currentCtx.cursorRow)->type == OME_String) && currentCtx.cursorRow > 0) {
|
||||
currentCtx.cursorRow--;
|
||||
}
|
||||
|
||||
if (currentCtx.cursorRow == -1 || (pageTop + currentCtx.cursorRow)->type == OME_Label) {
|
||||
// Goto previous page
|
||||
cmsPagePrev(pDisplay);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue