<script>
function test(){
if(event.ctrlKey)
alert("你按了CTRL键盘")
}
</script>
<body onkeydown="test()">

解决方案 »

  1.   

    你做梦你搜索一下VC++ ASM C/C++BCB Delphi各大版都没解决这个问题JS能解决倒是太阳从西边升了
    @_@
      

  2.   

    以下这段代码可以屏蔽大部分的键,但windows的热键如f1等屏蔽不了
    <html>
    <head>
    </head>
    <body onkeydown=OnKeyPress()>
    <form name=form1 id=form1>
     <input type=button name=force id=force value="" style="width:0;height:0">
    </form>
    </body>
    </html>
    <SCRIPT LANGUAGE=JAVASCRIPT>
    function OnKeyPress()
    {   

    document.form1.force .focus ();
    return false;

      
    }
    </SCRIPT>