Comparing version 0.1.10 to 0.1.11
@@ -16,11 +16,11 @@ // Generated by CoffeeScript 1.3.3 | ||
tilde: ref('Tilde/Back Tick', [96, 192]), | ||
apostrophe: ref('Apostrophe/Quote', [96, 192]), | ||
apostrophe: ref('Apostrophe/Quote', [39, 222]), | ||
slash: { | ||
forward: ref('Forward Slash/Question Mark', [47, 191]), | ||
backward: ref('Backward Slash/Pipe', [92, 220]) | ||
backward: ref('Backward Slash/Pipe', 220) | ||
}, | ||
brace: { | ||
square: { | ||
open: ref('Open Square/Curly Brace', [91, 219]), | ||
close: ref('Close Square/Curly Brace', [93, 221]) | ||
open: ref('Open Square/Curly Brace', 219), | ||
close: ref('Close Square/Curly Brace', 221) | ||
} | ||
@@ -27,0 +27,0 @@ } |
{ | ||
"name": "key", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A tiny little keycode library", |
@@ -25,3 +25,3 @@ #Key | ||
You can even use it to limit the keypresses allowed in a form field | ||
You can even assert against a collection of keys, not just a specific key. | ||
@@ -32,5 +32,5 @@ ```js | ||
input.on('keydown', function (event) { | ||
if (!key.is(key.code.alnum, event.which)) { | ||
if (key.is(key.code.punctuation, event.which)) { | ||
event.preventDefault(); | ||
window.alert('Alphanumeric characters only!'); | ||
window.alert('No punctuation allowed!'); | ||
} | ||
@@ -37,0 +37,0 @@ }); |
Sorry, the diff of this file is not supported yet
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
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
0
39294