Socket
Socket
Sign inDemoInstall

@github/details-menu-element

Package Overview
Dependencies
Maintainers
13
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/details-menu-element - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

32

dist/index.esm.js

@@ -194,19 +194,31 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

case 'ArrowDown':
sibling(details, true).focus();
event.preventDefault();
{
var target = sibling(details, true);
if (target) target.focus();
event.preventDefault();
}
break;
case 'ArrowUp':
sibling(details, false).focus();
event.preventDefault();
{
var _target = sibling(details, false);
if (_target) _target.focus();
event.preventDefault();
}
break;
case 'n':
if (ctrlBindings && event.ctrlKey) {
sibling(details, true).focus();
event.preventDefault();
{
if (ctrlBindings && event.ctrlKey) {
var _target2 = sibling(details, true);
if (_target2) _target2.focus();
event.preventDefault();
}
}
break;
case 'p':
if (ctrlBindings && event.ctrlKey) {
sibling(details, false).focus();
event.preventDefault();
{
if (ctrlBindings && event.ctrlKey) {
var _target3 = sibling(details, false);
if (_target3) _target3.focus();
event.preventDefault();
}
}

@@ -213,0 +225,0 @@ break;

@@ -253,19 +253,31 @@ (function (global, factory) {

case 'ArrowDown':
sibling(details, true).focus();
event.preventDefault();
{
var target = sibling(details, true);
if (target) target.focus();
event.preventDefault();
}
break;
case 'ArrowUp':
sibling(details, false).focus();
event.preventDefault();
{
var _target = sibling(details, false);
if (_target) _target.focus();
event.preventDefault();
}
break;
case 'n':
if (ctrlBindings && event.ctrlKey) {
sibling(details, true).focus();
event.preventDefault();
{
if (ctrlBindings && event.ctrlKey) {
var _target2 = sibling(details, true);
if (_target2) _target2.focus();
event.preventDefault();
}
}
break;
case 'p':
if (ctrlBindings && event.ctrlKey) {
sibling(details, false).focus();
event.preventDefault();
{
if (ctrlBindings && event.ctrlKey) {
var _target3 = sibling(details, false);
if (_target3) _target3.focus();
event.preventDefault();
}
}

@@ -272,0 +284,0 @@ break;

{
"name": "@github/details-menu-element",
"version": "0.6.2",
"version": "0.6.3",
"description": "A menu opened with a <details> button.",

@@ -5,0 +5,0 @@ "main": "dist/index.umd.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc