make-short
v1.0.4
Published
This package is designed to provide a feature to add keyboard shortcut to your website with just a function call.
Maintainers
Readme
Make Keyboard Shortcut
Make keyboard shortcut for your website just in one function call
Install
npm i make-short
syntex
makeShortcut('<button-name>', function() {
// write your action here
});<button-name>keyboard button name.function()function to call after button press.
Example
<script src="./node_module/keypress.js"></script>
<script>
makeShortcut('m', function() {
alert('m is pressed');
});
</script>