This is a migrated thread and some comments may be shown as answers.

linkbutton not requiring Enter before execution

1 Answer 26 Views
Button
This is a migrated thread and some comments may be shown as answers.
Shoshanah
Top achievements
Rank 1
Shoshanah asked on 18 Aug 2012, 07:57 PM
Using a standard asp.net Linkbutton, the Alt + Access Key focuses on the button, but required the Enter key to be pressed in order to execute the command.  
Our keyboard users really like this feature because it allows users to hear the tooltip for the button before executing, and also allows for looping through a series of buttons that share the same Access Key.

When I converted the application to use Radbuttons, the Alt+Access Key now automatically executes the command.

What do you recommend for requiring the Enter key before execution? 


1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 22 Aug 2012, 01:17 PM
Hi Shoshanah,

The default behavior of RadButton is to be clicked when its Access Key is used. You can try implementing the desired effect by handling the keyup JavaScript event on the page and canceling the RadButton's clicking when the Access Key is detected.

Alternatively, you can keep the LinkButton and utilize CSS in order to modify its appearance if needed.

Greetings,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Button
Asked by
Shoshanah
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or