@solid-primitives/keyboard 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -169,7 +169,7 @@ createShortcut(
|
|
|
169
169
|
|
|
170
170
|
### Preventing default
|
|
171
171
|
|
|
172
|
-
When `preventDefault` is `true`, `e.preventDefault()` will be called not only on the keydown event that
|
|
172
|
+
When `preventDefault` is `true`, `e.preventDefault()` will be called not only on the keydown event that has triggered the callback, but it will **optimistically** also prevent the default behavior of every previous keydown that will have the possibility to lead to the shortcut being pressed.
|
|
173
173
|
|
|
174
174
|
E.g. when listening for `Control + Shift + A`, all three keydown events will be prevented.
|
|
175
175
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solid-primitives/keyboard",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "A library of reactive promitives helping handling user's keyboard input.",
|
|
5
5
|
"author": "Damian Tarnwski <gthetarnav@gmail.com>",
|
|
6
6
|
"contributors": [],
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@solid-primitives/event-listener": "^2.4.
|
|
53
|
-
"@solid-primitives/rootless": "^1.5.
|
|
54
|
-
"@solid-primitives/utils": "^6.
|
|
52
|
+
"@solid-primitives/event-listener": "^2.4.5",
|
|
53
|
+
"@solid-primitives/rootless": "^1.5.3",
|
|
54
|
+
"@solid-primitives/utils": "^6.4.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"solid-js": "^1.6.12"
|