material icon indicating copy to clipboard operation
material copied to clipboard

mdSelect: Focus state swallows command+keypress, preventing command+R and some other shortcuts

Open 4storia opened this issue 10 years ago • 2 comments

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/GjEPvz
  • Details:
  1. Focus the md-select element, either via keyboard navigation or by picking an option.
  2. 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.5
  • Angular Material Version: 1.1.1

Additional Information:

  • Browser Type: * Chrome, Firefox
  • Browser Version: * Chrome Version 53.0.2785.116 (64-bit) Firefox Version 49.0.1
  • OS: * OS X 10.11.6
  • Stack 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.

4storia avatar Sep 28 '16 20:09 4storia

Should be fixed by #8893 @topherfangio

clshortfuse avatar Oct 13 '16 17:10 clshortfuse

This does appear to have been fixed in #8893. It works in this updated CodePen.

Splaktar avatar Jul 12 '18 03:07 Splaktar