简体   繁体   English

使用访问键属性的asp.net应用程序中的快捷方式不起作用

[英]Shortcuts in asp.net application is not working using access key properties

i have write following code for keyboard shortcut in asp.net application but it is not working on keypress. 我已经在asp.net应用程序中为键盘快捷方式编写了以下代码,但是在按键时无法正常工作。

<asp:Label ID="Label1" runat="server" 
        AccessKey="L" 
        AssociatedControlID="button1"
        Text="<u>L</u>ast name: ">
</asp:Label>&nbsp;
<asp:Button ID="button1" runat="server" Text="Add New" OnClick="button1_Click" CssClass="btn" />
  • Access keys and other keyboard shortcuts are not supported on all browsers. 并非所有浏览器都支持访问键和其他键盘快捷键。
  • Some ALT-key sequences might be reserved in the browser. 某些ALT键序列可能会在浏览器中保留。 For example, in Internet Explorer, ALT+F opens the File menu. 例如,在Internet Explorer中,ALT + F会打开“文件”菜单。 The browser determines whether to give precedence to your ALT-key sequence or to the brower's reserved keys. 浏览器确定是优先使用您的ALT键序列还是浏览器的保留键。

See here for more details. 有关更多详细信息,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM