Herbert Vojčík c580f1482c bump trysmalltalk and re-`bower install` the rest | 9 years ago | |
---|---|---|
.. | ||
tests | 10 years ago | |
README.md | 10 years ago | |
mousetrap-record.js | 9 years ago | |
mousetrap-record.min.js | 9 years ago |
This extension lets you use Mousetrap to record keyboard sequences and play them back:
<button onclick="recordSequence()">Record</button>
<script>
function recordSequence() {
Mousetrap.record(function(sequence) {
// sequence is an array like ['ctrl+k', 'c']
alert('You pressed: ' + sequence.join(' '));
});
}
</script>