You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is not an easy way to prevent sidenav from closing when the escape key is pressed due to the handleKeyDown method on MdSidenav.
It would be ideal to have a way to override this method, or at least be able to provide a boolean indicating that we do or do not want escape to close the sidenav.
For anyone searching for a workaround, it can be accomplished by using ViewChild and overriding the method in ngAfterViewInit (only including relevant bits in this snippet):