s*****p 发帖数: 5342 | |
r****m 发帖数: 83 | 2 function isShiftKeyPressed(event){
if (event.shiftKey==1){
//alert("shift key pressed!");
return true;
}else{
//alert("shift key NOT pressed!");
return false;
}
} |
s*****p 发帖数: 5342 | 3 thanks! it works for IE. what about Firefox?
【在 r****m 的大作中提到】 : function isShiftKeyPressed(event){ : if (event.shiftKey==1){ : //alert("shift key pressed!"); : return true; : }else{ : //alert("shift key NOT pressed!"); : return false; : } : }
|
r****m 发帖数: 83 | 4 The best way to get the answer is to google it. A question like this has
been answered ONE THOUSAND times on the internet. Just go and get it.
Have fun! |
h*******c 发帖数: 248 | 5 在function开始的地方加一句
if(!event) event=window.event;
【在 s*****p 的大作中提到】 : thanks! it works for IE. what about Firefox?
|