@github/hotkey
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -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", |
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
30651
740