|
|
|
start date: Sun, 12 Aug 2007 18:10:09 -0700,
posted on: microsoft.public.dotnet.framework.aspnet
back
| Thread Index |
|
1
BobLaughland
|
|
2
BobLaughland
|
accesskey property
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.
Date:Sun, 12 Aug 2007 18:10:09 -0700
Author:
|
Re: accesskey property
On Aug 13, 1:10 pm, BobLaughland wrote:
> 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?
Date:Mon, 20 Aug 2007 14:14:07 -0700
Author:
|
|
|