1.0.4 • Published 5 years ago

make-short v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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>

Thankyou

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago