Merge pull request #2041 from cewert/wrap-user-settings

This commit is contained in:
Charles Ewert 2024-11-16 16:36:37 -05:00 committed by GitHub
commit 95ca59f90f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -251,5 +251,19 @@ function onKeyEvent(key as string, press as boolean) as boolean
settingSelected() settingSelected()
end if end if
if key = "up" and m.settingsMenu.focusedChild <> invalid and m.settingsMenu.itemFocused = 0
m.settingsMenu.jumpToItem = m.settingsMenu.content.getChildCount() - 1
return true
end if
if key = "down" and m.settingsMenu.focusedChild <> invalid
if m.settingsMenu.itemFocused = m.settingsMenu.content.getChildCount() - 1
m.settingsMenu.jumpToItem = 0
return true
end if
end if
return false return false
end function end function