jQuery plugin that creates events triggered by keyboard combinations
- debug (boolean)
- This option will log the keyboard shortcuts being executed in the console as they are triggered.
bower install --save jquery-keyboard-shortcuts
npm i jquery-keyboard-shortcuts
Include jQuery
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
Include Keyboard Shortcuts jQuery Plugin
<script type="text/javascript" src="js/jquery.keyboard-shortcuts.min.js"></script>
Initialize
<script type="text/javascript">
$(window).initKeyboard();
</script>
Add events
<script type="text/javascript">
$(window).on('Shift+▶', function(){
// Execute function here
});
</script>