keypress-tool
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "keypress-tool", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Create custom keyboard shortcuts (in the browser)", | ||
@@ -13,4 +13,4 @@ "keywords": [ | ||
"repository": "JannesMeyer/keypress-tool", | ||
"main": "keypress-tool.js", | ||
"types": "keypress-tool.ts", | ||
"main": "KeyPress.js", | ||
"types": "KeyPress.ts", | ||
"scripts": { | ||
@@ -22,6 +22,6 @@ "prepare": "tsc", | ||
"devDependencies": { | ||
"@types/jasmine": "^2.8.2", | ||
"jasmine": "^2.8.0", | ||
"typescript": "^2.6.2" | ||
"@types/jasmine": "^3.5.14", | ||
"jasmine": "^3.6.1", | ||
"typescript": "^4.0.3" | ||
} | ||
} |
@@ -24,3 +24,3 @@ # keypress-tool | ||
// Set the second parameter to true if this listener should also fire during text input | ||
KeyPress('A', 'meta').addListener(handleEvent, true); | ||
KeyPress('A').addListener(handleEvent, true); | ||
@@ -32,3 +32,3 @@ function handleEvent(event) { | ||
// Clean up (very important to avoid memory leaks) | ||
KeyPress('A', 'meta').removeListener(handleEvent); | ||
KeyPress('A').removeListener(handleEvent); | ||
@@ -61,3 +61,3 @@ // The default is to preventDefault. Pass 'executeDefault' if you want to change this | ||
Or compile and watch for file changes: | ||
Compile and watch for file changes: | ||
@@ -64,0 +64,0 @@ ```sh |
{ | ||
"compilerOptions": { | ||
"target": "es2015", | ||
"lib": [ | ||
@@ -7,5 +8,5 @@ "es2015", "dom" | ||
"strict": true, | ||
"noImplicitAny": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"types": [] | ||
@@ -12,0 +13,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
14929
8
415
1