orca-mousetrap-record
v1.0.0
Published
An adapted version of the record plugin for mousetrap
Downloads
2
Readme
Record
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>