How to create hot key
In my Grails application called fleet management system trip creation is the basic function. I want to provide hot key ( like Ctrl+T, Alt+Ctrl+Delete), on pressing the hot k开发者_开发技巧ey it should open trip creation page. Is there anyway to do that using jquery ? how about Ctrl+Y key combination ?
This plugin looks viable
Example:
$(document).bind('keydown', 'Ctrl+c', fn);
精彩评论