Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Keyboard Shortcuts in C# Application using Jquery
WhatsApp
Abhishek Chadha
Sep 03
2015
1.4
k
0
0
$(function() {
$(document).keyup(function(e) {
// Function Call on keyup Event
var key = (e.keyCode ? e.keyCode : e.charCode);
// find the keycode
switch
(key) {
case
64:
// on pressing @ Reset Button call
document.getElementById(
"<%=btnreset.ClientID%>"
).click();
break
;
case
32:
// on pressing space save button call
document.getElementById(
"<%=btnsave.ClientID%>"
).click();
break
;
}
}
});
Some More Keycodes:
For Digit 0 - 9 keycodes are from 48-57 respectively.
For Uppercase A - Uppercase Z keycodes are from 65-90 respectively.
For Lowercase a - Lowercase z keycodes are from 97-122 respectively.
shortcuts in c#
jquery
Up Next
Keyboard Shortcuts in C# Application using Jquery