Skip to content

Instantly share code, notes, and snippets.

@gridphp
Created April 14, 2021 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gridphp/fd1f3d01e1771267b722e24ab61a56ca to your computer and use it in GitHub Desktop.
Save gridphp/fd1f3d01e1771267b722e24ab61a56ca to your computer and use it in GitHub Desktop.
<!-- 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