fix: correctly handle Alt+Key shortcuts (#29328)
This commit is contained in:
parent
0208e4adad
commit
d74ad51826
2 changed files with 12 additions and 10 deletions
|
@ -56,6 +56,8 @@ void MenuBar::SetAcceleratorVisibility(bool visible) {
|
|||
}
|
||||
|
||||
MenuBar::View* MenuBar::FindAccelChild(char16_t key) {
|
||||
if (key == 0)
|
||||
return nullptr;
|
||||
for (auto* child : GetChildrenInZOrder()) {
|
||||
if (static_cast<SubmenuButton*>(child)->accelerator() == key)
|
||||
return child;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue