accesskey property

B

BobLaughland

Hi There,

I have a website which uses access keys. I can press alt+1, alt+2,
etc, and it hilights controls on the page.

My question is why do some controls need enter pressed after the
access key combination is pressed?

I have a bunch of '<a href/>' controls which require enter being
pressed after the access key combination is pressed to activate the
control (these are links to other pages).

I also have an '<asp:ImageButton/>' control, which doesn't require
enter to be pressed after the access key combination is pressed.

It seems that the html controls are behaving one way, and the ASP .NET
controls behaving the other way. They are both using the same
'accesskey' atribute.

By changing the minimum amount of stuff how can I make them all
consistant?

Thanks.
 
B

BobLaughland

Hi There,

I have a website which uses access keys. I can press alt+1, alt+2,
etc, and it hilights controls on the page.

My question is why do some controls need enter pressed after the
access key combination is pressed?

I have a bunch of '<a href/>' controls which require enter being
pressed after the access key combination is pressed to activate the
control (these are links to other pages).

I also have an '<asp:ImageButton/>' control, which doesn't require
enter to be pressed after the access key combination is pressed.

It seems that the html controls are behaving one way, and the ASP .NET
controls behaving the other way. They are both using the same
'accesskey' atribute.

By changing the minimum amount of stuff how can I make them all
consistant?

Thanks.

Any ideas on this one? I read the microsoft documentation, and it says
that when an access key is pressed each type of control has the option
of performing an action (this is defined by the control, not the
user). It seems that this is the problem in this case. The ImageButton
is performing the click action when the access key is pressed.

One of the examples they gave was when an option group has an access
key associated with one of the items. When the access key(s) is/are
pressed there is the potential for the option group selection to
change.

Is it possible to disable this functionality, the control performing a
predefined action?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top