1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Popupmenu key control wrapping.

This commit is contained in:
jules 2013-05-29 12:16:18 -07:00
parent 9d23f87f7c
commit 7ba63768a7

View file

@ -1061,7 +1061,7 @@ private:
{
start += delta;
if (PopupMenu::ItemComponent* mic = items.getUnchecked (jlimit (0, items.size() - 1, start)))
if (PopupMenu::ItemComponent* mic = items.getUnchecked ((start + items.size()) % items.size()))
{
if (mic->itemInfo.canBeTriggered() || mic->itemInfo.hasActiveSubMenu())
{