@primer/view-components 0.45.0-rc.4242aa07 → 0.45.0-rc.65cb45a4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -251,6 +251,15 @@ let SelectPanelElement = class SelectPanelElement extends HTMLElement {
251
251
  // hide() will automatically be called by dialog event triggered from `data-close-dialog-id`
252
252
  return;
253
253
  }
254
+ if (event.type === 'keydown' &&
255
+ event instanceof KeyboardEvent &&
256
+ event.target.closest(visibleMenuItemSelectors)) {
257
+ const hasModifier = event.ctrlKey || event.altKey || event.metaKey;
258
+ const isAlphabetKey = event.key.length === 1 && /[a-z\d]/i.test(event.key);
259
+ // eslint-disable-next-line no-restricted-syntax
260
+ if (!hasModifier && isAlphabetKey)
261
+ event.stopPropagation();
262
+ }
254
263
  if (event.target === this.dialog && event.type === 'close') {
255
264
  // Remove data-ready so it can be set the next time the panel is opened
256
265
  this.dialog.removeAttribute('data-ready');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.45.0-rc.4242aa07",
3
+ "version": "0.45.0-rc.65cb45a4",
4
4
  "description": "ViewComponents for the Primer Design System",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",