Trying to use same letter for hotkey using alt and alt+shift

I am using Chrome and trying to use JQuery to map alt+a to one input and alt+shift+a to the other input. I have debugged through it using chrome and still can't figure it out. I am confused as the best way to do this. I am not sure if this is possible. I also tried using accesskey="a" on both inputs but in that case it just hits the second input. Any ideas or help will be much appreciated. Thanks\[code\]<!DOCTYPE html><html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"/> <script type="text/javascript" language="JavaScript"> $(document).ready( function () { $(document).keyup('alt+a', function () { $('suc').click(); }); $(document).keyup('alt+shift+a', function () { $('try').click(); } ); }); </script> </head> <body> <form> <input type="submit" formaction="file:///C:/Users/me/Desktop/success.html" value="http://stackoverflow.com/questions/15626166/Success" accesskey="a" id="suc"> <input type="submit" formaction="file:///C:/Users/me/Desktop/tryAgain.html" value="http://stackoverflow.com/questions/15626166/TryAgain" accesskey="a" id="try" > </form> </body></html>\[/code\]
 
Back
Top