fix(color): PAGE key navigation in quick menu does not activate selected menu (#7112)

This commit is contained in:
philmoz
2026-02-20 13:46:20 +10:00
committed by GitHub
parent 80e26da188
commit fe942df5f8
2 changed files with 3 additions and 1 deletions
@@ -599,7 +599,7 @@ void QuickMenu::afterPG()
{
auto b = mainMenu->getFocusedButton();
if (b) {
#if VERSION_MAJOR > 3
#if VERSION_MAJOR > 2
for(auto sub : subMenus) {
if (sub->isSubMenu(b)) {
sub->activate();
@@ -160,6 +160,8 @@ ButtonBase* QuickMenuGroup::addButton(EdgeTxIcon icon, const char* title,
if (focusHandler)
focusHandler(focus);
});
if (curBtn == nullptr)
curBtn = b;
return b;
}