I\'m coding a function in jquery that executes if Ctrl+R is pressed but I can\'t seem to find out what the left and right ctrl keycodes are... Can some
$(document).ready(function () { $(document).keyup(function (e) { if (e.keyCode == 81 && e.ctrlKey) { //CTRL+Q alert("CTRL+Q"); } else if (e.keyCode == 27) { //ESCAPE alert("escape"); } else if (e.keyCode == 67 && e.altKey) { // ALT+C alert("ALT+C"); } }); });
key codes