material
material copied to clipboard
mdSelect: Focus state swallows command+keypress, preventing command+R and some other shortcuts
Actual Behavior:
What is the issue? *While an md-select element is focused, keypresses are intercepted by the component. However, command+R (among other shortcuts) is swallowed, preventing the user from refreshing the page while the md-select element has focus.What is the expected behavior?Focus on an element should not prevent keyboard shortcuts from functioning
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:http://codepen.io/Flare/pen/GjEPvzDetails:
- Focus the md-select element, either via keyboard navigation or by picking an option.
- Press command+r (not all shortcuts seem to be swallowed by this listener. I was able to use command+w successfully, but not command+L)
Angular Versions: *
Angular Version:1.5.5Angular Material Version:1.1.1
Additional Information:
Browser Type: *Chrome, FirefoxBrowser Version: *Chrome Version 53.0.2785.116 (64-bit) Firefox Version 49.0.1OS: *OS X 10.11.6Stack Traces:
Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.
Should be fixed by #8893 @topherfangio
This does appear to have been fixed in #8893. It works in this updated CodePen.