|
Download node_modules/mousetrap/plugins/record/README.md from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 391 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/mousetrap/plugins/record/README.md
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/node_modules/mousetrap/plugins/record/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/mousetrap/plugins/record/README.md
391 Bytes
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>