Wrap alpha menu

Fixes #1210
This commit is contained in:
1hitsong 2023-05-03 16:59:57 -04:00
parent 92e1535f88
commit 50cf70dd25

View File

@ -24,5 +24,20 @@ function onKeyEvent(key as string, press as boolean) as boolean
end if end if
return true return true
end if end if
if key = "up"
if m.Alphamenu.itemFocused = 0
m.Alphamenu.jumpToItem = m.Alphamenu.numRows - 1
return true
end if
end if
if key = "down"
if m.Alphamenu.itemFocused = m.Alphamenu.numRows - 1
m.Alphamenu.jumpToItem = 0
return true
end if
end if
return false return false
end function end function