-1 |
|
normaal ga je in je javascript checkKey(e) aanroepen vannuit je onkeyup events.
en doe je bijvoorbeeld zoiets:
function checkKey(e) {
var targ = e ? e : window.event;
key = targ.keyCode ? targ.keyCode : targ.charCode;
if(targ.ctrlKey == true && key == 106 { // 106 is key 'j'
alert('Yay!');
}
}
function checkKey(e) { var targ = e ? e : window.event; key = targ.keyCode ? targ.keyCode : targ.charCode; if(targ.ctrlKey == true && key == 106 { // 106 is key 'j' alert('Yay!'); } }
|