https://github.com/koding/record-shortcuts
records shortcuts on browser
https://github.com/koding/record-shortcuts
Last synced: about 1 month ago
JSON representation
records shortcuts on browser
- Host: GitHub
- URL: https://github.com/koding/record-shortcuts
- Owner: koding
- Created: 2015-05-06T03:05:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-07-21T22:44:59.000Z (over 9 years ago)
- Last Synced: 2025-10-19T02:43:15.653Z (5 months ago)
- Language: JavaScript
- Size: 112 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# record-shortcuts
records shortcuts on browser.
# usage
```js
record.start()
.on('end', function (arr) { })
.on('cancel', function () { });
```
# api
# .start()
Starts a new recording session, cancelling previous one.
This returns an `EventEmitter` singleton that emits either an `end` or a `cancel`.
# .cancel()
Cancels current recording session and emits `cancel`.
# validation
Works pretty much like how osx does.
### valid combinations
* `command+s`
* `command+alt+ctrl+s`
* `command+alt+ctrl+shift+s`
* `alt+s`
* `ctrl+s`
### invalid combinations
* `s`
* `shift+s`
* `s+a`
* `command+shift`
# license
mit