Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I have set access keys for buttons in my web form.

C#
<asp:Button ID="btnNew" runat="server" Text="New" ToolTip="New Button" OnClick="btnNew_Click" AccessKey="n" />


They work in properly in chrome. But when i run my app in firefox it does not work.Why? How to make it work? Help me..
Posted
Updated 25-Dec-20 4:57am
v2
Comments
[no name] 2-May-14 2:30am    
string value of "n" to the property indicates that the key combination of alt+n can be used as a shortcut key.

Regards,
Praveen Nelge
pwavell 2-May-14 2:35am    
yes i am using the same combination alt+n.Focus goes to browsers menu bar.

Use Shift+Alt+n. Its different for Firefox.
 
Share this answer
 
string value of "n" to the property indicates that the key combination of alt+n can be used as a shortcut key.

I am not sure but I think property called "AssociatedControlId" is must.Please give a try

Try out for : Shift+Alt+n


Ex:
C#
<asp:button id="btnNew" runat="server" text="New" tooltip="New Button" onclick="btnNew_Click" accesskey="n" associatedcontrolid="btnNew" xmlns:asp="#unknown" />



Regards,
Praveen Nelge
 
Share this answer
 
v2
I have the same problem with FireFox on a Mac. I am using accesskey n for next and p for previous and p works but n does not.

The two other solutions don't address the problem, the author knows what keys to use on his keyboard.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900