Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!-- Library to load hotkeys -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.hotkeys/0.2.0/jquery.hotkeys.min.js" type="text/javascript"></script>
<script>
// more help here: https://github.com/jeresig/jquery.hotkeys
jQuery(document).ready(function(){
// where list1 is your grid id
jQuery(document).bind('keydown', 'f4', function assets() {
jQuery('#add_list1').click();
return false;
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment