e.which codes for CTRL + A and CTRL + E
Can anybody please tell me e.which codes for key press CTRL + A and CTRL + E.
Also please tell me where i can find these values, i tried searching google but no appropriate results and 开发者_StackOverflowi dont want shortcuts plugin for simple needs.
Thank You.
Take a look at Ctrl + Key Combination simple example:
if(e.keyCode == key.charCodeAt(0) && isCtrl)
In jQuery UI Core (ui.core.js) you have translations for common key codes.
$.keyCode = {
...
ENTER: 13,
...
};
just check there the key codes, you don't have to include this file.
Is this helpful?
http://www.scottklarr.com/topic/126/how-to-create-ctrl-key-shortcuts-in-javascript/
If 'S' is 83, then A = 65, right? And E=69?
精彩评论