angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.39k stars 6.76k forks source link

fix(material/menu): handle keyboard events through dispatcher #29997

Closed crisbeto closed 1 week ago

crisbeto commented 2 weeks ago

Currently mat-menu handles it keyboard events in the template, however this ignores the overlay's stacking context which can capture some events that it shouldn't.

These changes switch the menu to handling the events through the common dispatcher instead.

Fixes #29996.