@github/hotkey
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -204,3 +204,3 @@ function _classCallCheck(instance, Constructor) { | ||
function hotkey(event) { | ||
return "".concat(event.ctrlKey ? 'Control+' : '').concat(event.altKey ? 'Alt+' : '').concat(event.metaKey ? 'Meta+' : '').concat(event.shiftKey ? 'Shift+' : '').concat(event.key); | ||
return "".concat(event.ctrlKey ? 'Control+' : '').concat(event.altKey ? 'Alt+' : '').concat(event.metaKey ? 'Meta+' : '').concat(event.shiftKey && event.key.toUpperCase() !== event.key ? 'Shift+' : '').concat(event.key); | ||
} | ||
@@ -207,0 +207,0 @@ |
@@ -210,3 +210,3 @@ (function (global, factory) { | ||
function hotkey(event) { | ||
return "".concat(event.ctrlKey ? 'Control+' : '').concat(event.altKey ? 'Alt+' : '').concat(event.metaKey ? 'Meta+' : '').concat(event.shiftKey ? 'Shift+' : '').concat(event.key); | ||
return "".concat(event.ctrlKey ? 'Control+' : '').concat(event.altKey ? 'Alt+' : '').concat(event.metaKey ? 'Meta+' : '').concat(event.shiftKey && event.key.toUpperCase() !== event.key ? 'Shift+' : '').concat(event.key); | ||
} | ||
@@ -213,0 +213,0 @@ |
{ | ||
"name": "@github/hotkey", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.umd.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22960
0