Accelerator keys you should avoid for Asp.Net 2.0 controls
Asp.Net 2.0 server Controls like Label, TexBox etc. now can be quickly accessed from keyboard by assigning accelerator keys to them at design time. Accelerator keys or Hot keys allows controls to be accessed and get focused by specific hot key press ( for example ALT + N) similar to CTRL + C is used for copy.
So now if you have made a text box for entering username and assign Hot key as ALT + E, What happens ? The users will access the edit menu of IE or Firefox but not that text box.
Note: Hot keys are assigned using AccessKey syntax , see the bold part of below code.
<asp:TextBox ID=”TextBox1″ AccessKey =”E” runat=”server”></asp:TextBox>
Assigning Hot-Keys or accelerator keys to asp.net 2.0 controls which is same as Browsers Hot-keys is one of the major mistake you will do if you are designing web based applications or web sites. AVOID IT. Here is the list of hot keys you should not use
- ALT + F
- ALT + E
- ALT + V
- ALT + I
- ALT + O
- ALT + T
- ALT + A
- ALT + W
- ALT + H
If you use any of these IE or Firefox actions supersede any actions you place on page.
Posted on 27th October 2007 by Ashish Mohta , A Professional Tech blogger, Editor and Writer who talks about solving day to day problems of people who use computer. He also writes on How to use the applications like Office, PC tips, Online tools,Browsers and more. All posts by Ashish Mohta | Connect with me @ Twitter | Linkedin | Facebook | Stumble



Sign up for our daily email newsletter
Leave your response!