Created
January 6, 2015 17:01
-
-
Save stevelippert/21f5a5786786d6b54cec to your computer and use it in GitHub Desktop.
jQuery hotkeys
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script charset="utf8" src="/libs/js/jquery.hotkeys.min.js"></script> | |
//When the ALT + N keys are pressed together, trigger the button click (as it has additional logic to process). | |
$(document).on("keydown", null, "alt+n", function(){ | |
$("#BUTTON_ID").trigger("click"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment