如何在f11键上打开表格 [英] how to open the form on the f11 key press

查看:103
本文介绍了如何在f11键上打开表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在f11按键上打开表单..有人可以帮我吗?

how to open the form on the f11 key press..can anybody please help me

推荐答案

如果您想捕获击键(如F11)并执行操作基于该信息(例如打开表单),本文将说明如何执行此操作,并提供示例代码来帮助您:

http://support.microsoft.com/kb/320584 [ http://stackoverflow.com/Questions/424407/handling-key-press-events-f1-f12-using-javascript-and-jquery-cross-browser [
If you want to capture keystrokes (like F11) and perform actions based upon that information (like opening a form), this article has the explanation of how to do that and sample code to help you out:

http://support.microsoft.com/kb/320584[^]

However, you have tagged your question as ASP.NET. This won''t work in the browser. To do that, you would need to look into Javascript or jQuery. Here is a possible solution:

http://stackoverflow.com/questions/424407/handling-key-press-events-f1-f12-using-javascript-and-jquery-cross-browser[^]

One of the things that the above Stack Overflow question points out is that listening to the function keys in the browser is a bad idea. They are reserved for browser tasks (for example, F11 is usually reserved for fullscreen mode in the browser). Also, different browsers will work differently in how they capture the keys (or don''t capture the keys). It makes for a much more difficult capture and you need to be aware of that going in.


这篇关于如何在f11键上打开表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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