Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md « record « plugins « mousetrap « bower_components « libs - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 903f6057ff0aa5bcc118f8ee542d27efc059f8a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Record

This extension lets you use Mousetrap to record keyboard sequences and play them back:

```html
<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>
```