keyroute 0.1.1 → 0.1.2
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 +13 -1
- package/keyroute-0.1.2.tgz +0 -0
- package/package.json +1 -1
- package/keyroute-0.1.1.tgz +0 -0
package/README.md
CHANGED
|
@@ -14,12 +14,13 @@ Define your own keyboard shortcut and make your website more accessible.
|
|
|
14
14
|
createKeyroute({
|
|
15
15
|
'ctrl+s': () => save(),
|
|
16
16
|
'esc': () => close()
|
|
17
|
-
})
|
|
17
|
+
});```
|
|
18
18
|
|
|
19
19
|
## Installation
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
npm install keyroute
|
|
23
|
+
```
|
|
23
24
|
|
|
24
25
|
## Basic usage in Angular
|
|
25
26
|
|
|
@@ -33,3 +34,14 @@ const shortcuts = createKeyroute({
|
|
|
33
34
|
|
|
34
35
|
// Call when you no longer need the shortcuts
|
|
35
36
|
shortcuts.destroy();
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Contributing
|
|
40
|
+
|
|
41
|
+
PRs welcome.
|
|
42
|
+
If you have ideas for:
|
|
43
|
+
- additional key combos
|
|
44
|
+
- accessibility improvements
|
|
45
|
+
- framework helpers
|
|
46
|
+
|
|
47
|
+
Feel free to open an issue.
|
|
Binary file
|
package/package.json
CHANGED
package/keyroute-0.1.1.tgz
DELETED
|
Binary file
|