Socket
Socket
Sign inDemoInstall

@github/hotkey

Package Overview
Dependencies
Maintainers
15
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/hotkey - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

2

dist/hotkey.js

@@ -17,3 +17,3 @@ import { macosSymbolLayerKeys } from './macos-symbol-layer';

if (!modifierKeyNames.includes(key)) {
const nonOptionPlaneKey = matchApplePlatform.test(platform) ? (_a = macosSymbolLayerKeys[key]) !== null && _a !== void 0 ? _a : key : key;
const nonOptionPlaneKey = hotkeyString.includes('Alt') && matchApplePlatform.test(platform) ? (_a = macosSymbolLayerKeys[key]) !== null && _a !== void 0 ? _a : key : key;
const syntheticKey = (_b = syntheticKeyNames[nonOptionPlaneKey]) !== null && _b !== void 0 ? _b : nonOptionPlaneKey;

@@ -20,0 +20,0 @@ hotkeyString.push(syntheticKey);

@@ -86,3 +86,2 @@ class Leaf {

['≠']: '=',
['`']: '~',
['⁄']: '!',

@@ -180,3 +179,3 @@ ['€']: '@',

if (!modifierKeyNames.includes(key)) {
const nonOptionPlaneKey = matchApplePlatform.test(platform) ? (_a = macosSymbolLayerKeys[key]) !== null && _a !== void 0 ? _a : key : key;
const nonOptionPlaneKey = hotkeyString.includes('Alt') && matchApplePlatform.test(platform) ? (_a = macosSymbolLayerKeys[key]) !== null && _a !== void 0 ? _a : key : key;
const syntheticKey = (_b = syntheticKeyNames[nonOptionPlaneKey]) !== null && _b !== void 0 ? _b : nonOptionPlaneKey;

@@ -183,0 +182,0 @@ hotkeyString.push(syntheticKey);

@@ -14,3 +14,2 @@ export const macosSymbolLayerKeys = {

['≠']: '=',
['`']: '~',
['⁄']: '!',

@@ -17,0 +16,0 @@ ['€']: '@',

{
"name": "@github/hotkey",
"version": "2.3.0",
"version": "2.3.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.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