如何让ESC在受信任的应用程序中退出全屏模式?
键盘限制更改的一个后果是,在受信任的应用程序中按 ESC 不会退出全屏模式。这使您可以使用 ESC 键执行其他功能。但是,您必须提供自己的用户界面才能退出全屏模式。
参考: http://msdn.microsoft .com/en-us/library/ee721083(v=VS.95).aspx#fullscreen_support
我需要让按 ESC 会在受信任的应用程序中退出全屏模式,而不在所有页面中提供 UI 控件。
请给我提示,谢谢。
One consequence of the keyboard-restriction change is that pressing ESC will not exit full-screen mode in trusted applications. This enables you to use the ESC key for other functionality. However, you must provide your own user interface for exiting full-screen mode.
Reference: http://msdn.microsoft.com/en-us/library/ee721083(v=VS.95).aspx#fullscreen_support
I need to make pressing ESC will exit from full-screen mode in trusted application without provide a UI control in all pages.
Please give me hints, thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是你的做法。
通过使用
AddHandler
方法,您可以指示您想要接收 keydown 事件,无论它是否已被标记为由另一个控件处理。因此,无论当前哪个控件具有焦点,按下 Esc 键都应该向上浮起。This is the way you do it.
By using the
AddHandler
method you can indicate that you want to recieve the keydown event regardless of whether it has been marked as handled by another control. Hence regardless of what control currently has the focus, the pressing of the Esc key should bubble up to the top.