Hi viewers
I need to assign a shortcut key in my application login page for submit button for example if i press any key like ctrl+q or alt+q etc. then automatically submit button onclick event should work and login should done and must goes to main menu is there any possibility give solution with example ...
regards
saikiran gst
Loading

Rajagopalan R VPosted Jun 9, 2014, 5:53 AM
There is a "Event Key Codes"
Key Code = "13" is For Enter Button
The Below Event Will Work
After Placing this onkeypress Tag Where You needed
For Example I Have Placed OnkeyPress Event in A Particular Text Box When i Click Enter in that Text box "Sign In Button Operation" Will Perform like This you May Can Call the Particular Button Event in Text box
With Regards.....,
R.V.Rajagopalan
Saikiran GstPosted Jun 10, 2014, 8:17 AM
you can refer below link for Access key property in wiki
http://en.wikipedia.org/wiki/Access_key
example code:-
working process:-
In firefox:-alt+shift+q
chrome and internet explorer:-alt+Q
regards
sai kiran gst
Rajagopalan R VPosted Jun 10, 2014, 8:09 AM
Its Good ...., Can U Please Post the Code How You had Solve the Problem. In Future It May Useful to others those who Search for same Problem in forum or Via Google.....,
With Regards......,
R.V.Rajagopalan
Saikiran GstPosted Jun 10, 2014, 6:04 AM
Rajagopalan rv
Thanq for providing a code for short cut key assigning to any control like button to perform submit operation when we click on enter button on key board but i need when i press alt+any letter(a,b,c...z) i mentioned click means should control should goes to textbox or button.
But i got solution for this by using Accesskey property Accesskey=Q in button or textbox then press alt+q then control will goes to particular button or textbox and performs onclick event for button and for textbox control is going thats all but browser to browser operations are varying for example in firefox-shift+alt+q,chrome and ie-alt+q , u can also refer in below link about Accesskey property...
Regards
saikirangst