fix(color): PAGE key navigation in quick menu does not activate selected menu (#7112)
This commit is contained in:
@@ -599,7 +599,7 @@ void QuickMenu::afterPG()
|
|||||||
{
|
{
|
||||||
auto b = mainMenu->getFocusedButton();
|
auto b = mainMenu->getFocusedButton();
|
||||||
if (b) {
|
if (b) {
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 2
|
||||||
for(auto sub : subMenus) {
|
for(auto sub : subMenus) {
|
||||||
if (sub->isSubMenu(b)) {
|
if (sub->isSubMenu(b)) {
|
||||||
sub->activate();
|
sub->activate();
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ ButtonBase* QuickMenuGroup::addButton(EdgeTxIcon icon, const char* title,
|
|||||||
if (focusHandler)
|
if (focusHandler)
|
||||||
focusHandler(focus);
|
focusHandler(focus);
|
||||||
});
|
});
|
||||||
|
if (curBtn == nullptr)
|
||||||
|
curBtn = b;
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user