Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

w3c-keyname

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

w3c-keyname - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

11

index.es.js

@@ -53,4 +53,3 @@ export var base = {

221: "]",
222: "'",
229: "q"
222: "'"
}

@@ -82,4 +81,3 @@

221: "}",
222: "\"",
229: "Q"
222: "\""
}

@@ -110,6 +108,5 @@

export function keyName(event) {
// Don't trust event.key in Chrome when there are modifiers until
// they fix https://bugs.chromium.org/p/chromium/issues/detail?id=633838
var ignoreKey = brokenModifierNames && (event.ctrlKey || event.altKey || event.metaKey) ||
(safari || ie) && event.shiftKey && event.key && event.key.length == 1
(safari || ie) && event.shiftKey && event.key && event.key.length == 1 ||
event.key == "Unidentified"
var name = (!ignoreKey && event.key) ||

@@ -116,0 +113,0 @@ (event.shiftKey ? shift : base)[event.keyCode] ||

{
"name": "w3c-keyname",
"version": "2.2.4",
"version": "2.2.5",
"description": "Get a KeyboardEvent.key-style string from an event",

@@ -5,0 +5,0 @@ "main": "index.cjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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