There is a mat-select angular tag inside a mat-drawer. When the focus is on mat-select and it is expanded, on pressing escape key, the whole mat-drawer closes but instead the drop down of mat-select should close.
I was thinking that we can prevent the default behavior of escape key but then it will also prevent the closing of mat-select and ultimately mat-drawer.
Actual: The whole mat-drawer(Side navigation window) closes on pressing escape when the mat-select is still expanded.
Expected: First the mat-select should collapse on pressing escape, after that on pressing escape the mat drawer should close.enter image description here

angularjsandangularwhich are 2 different frameworks (albeit the second is based on the concepts of the first). Please remove the irrelevant tag according to which framework you're actually using. - ethanfar