Latest commit ebcf23a Mar 29, 2015

README.md

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>