如何在IE中禁用Alt-Enter? [英] How can I disable Alt-Enter in IE?

查看:109
本文介绍了如何在IE中禁用Alt-Enter?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于IE的默认行为是在 Alt - Enter 命令切换到全屏模式。我要避免这种情况,必须附加自定义行为。

As the default behavior of IE is to switch to the full screen mode on Alt-Enter command. I've to avoid this and have to attach a custom behavior.

可行吗?

推荐答案

不在JavaScript中,没有。

Not in JavaScript, no.

这是应用程序的行为,您实际上无法控制(除了浏览器)扩展等等。

This is a behaviour of the application, which you don't really have control over (aside from browser extensions, and such).

您可以尝试捕获页面上的按键,但这不会阻止用户轻易绕过它。

You could try catching the key presses on your page, but it wouldn't prevent the user from easily circumventing it.

请参阅 http://www.webonweboff.com /tips/js/event_key_codes.aspx 获取密钥的字符代码列表。我很确定抓住按键组合是不可靠的。

See http://www.webonweboff.com/tips/js/event_key_codes.aspx for a list of the character codes for keys. I'm pretty sure it's not reliable for catching combinations of key presses.

此外, Alt + 输入 in IE会产生预期行为,您不应尝试通过网页覆盖此行为。

Besides, Alt+Enter in IE results in an expected behaviour and you should not try to override this via a webpage.

这篇关于如何在IE中禁用Alt-Enter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆