@github/details-menu-element
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24472
529