Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I wants to open the asp.net menu item by using the keybord shortcut keys in my application such as if user wants to open the Master ----> Add user
page then he can open by using the any keybord shortcut key means such as ctrl + A or alt + A ..


how to do it in asp.net application please provide a solution


thanks in advance
Posted
Updated 8-Oct-12 2:02am
v2

 
Share this answer
 
yes you can but it will be exhaustive.here is a skeleton -
document.onkeydown = function(evt)
{
    evt = evt || window.event;
    if (evt.keyCode == 37)
    {
        //do something
    }
    else if (evt.keyCode == 38)
    {
        //do something
    }
    else if (evt.keyCode == 39)
    {
        //do something
    }
    else if (evt.keyCode == 40)
    {
        //do something
    }
};


and there is lots of thirdpart tools to acheive this task like superfish, Suckerfish Dropdowns .

http://www.adipalaz.com/experiments/css/accessible_ddmenu_test.html[^]
 
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