Capturing Ctrl-Alt-Del in JavaScript/jQuery

后端 未结 4 1708
旧巷少年郎
旧巷少年郎 2020-12-12 00:10

While just playing with jQuery/JavaScript I ran across this problem. I could capture Alt and Ctrl keys but NOT Del and certainly not all of

4条回答
  •  攒了一身酷
    2020-12-12 00:48

    I don't think this is possible.

    You see, all kinds of user input, be it via keyboard or mouse or whatever IO device, is passed to your application through Windows in the form of messages. However, there are some dedicated messages that are captured and handled at the windows OS level. Ctrl+Alt+Del is one such operation. Windows would not pass on this message any further.

提交回复
热议问题