react-cosmos-core
Advanced tools
Comparing version 6.0.4-canary.2b25174.0 to 6.0.4-canary.5364b02.0
@@ -9,3 +9,3 @@ export function registerPlaygroundShortcuts(runCommand) { | ||
// Allow meta key shortcuts to work when focused on input fields | ||
if (isEditing() && !e.metaKey) { | ||
if (isEditing(e) && !e.metaKey) { | ||
return; | ||
@@ -46,3 +46,6 @@ } | ||
} | ||
function isEditing() { | ||
function isEditing(e) { | ||
if (e.target instanceof HTMLElement && e.target.isContentEditable) { | ||
return true; | ||
} | ||
const activeElement = document.activeElement; | ||
@@ -49,0 +52,0 @@ return activeElement && isInputTag(activeElement.tagName); |
{ | ||
"name": "react-cosmos-core", | ||
"version": "6.0.4-canary.2b25174.0+2b25174", | ||
"version": "6.0.4-canary.5364b02.0+5364b02", | ||
"description": "React Cosmos Core", | ||
@@ -15,3 +15,3 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-core", | ||
}, | ||
"gitHead": "2b25174ed0e6f6899a05ca691275146342d3daa2" | ||
"gitHead": "5364b02d03f71bb318da044d5d91ec60528f313b" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
56017
1391