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:
parent
9d23f87f7c
commit
7ba63768a7
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue