我可以处理网页中的 ALT+TAB 按键吗?
我意识到这是大多数操作系统中的程序切换键组合。是否有可能通过 JavaScript 在网页中捕获此类事件?
I realize this is a program switcher key combo in most OSs. Is there a possibility of capturing such an event in the web page via JavaScript?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当然你无法捕获这个事件,当然你也无法禁用它。浏览器不拥有计算机,您也不拥有浏览器!
你为什么要这样做?这是一个内部应用程序,还是互联网上的一个可供任何人使用的应用程序?
Of course you can't capture this event, and of course you can't disable it. The browser doesn't own the computer, and you don't own the browser!
Why do you want to do this? Is this for an internal application, or one on the Internet, to be used by anyone?
不,但你为什么要这么做?
您想要做一些 onfocus 或 onblur 吗?也许这些活动对您有用。
No, but why would you want to?
Are you looking to do some onfocus or onblur? Maybe those events are useful for you.