简体   繁体   中英

How to add keyboard shortcuts in ASP.NET for Focus / ButtonClicks

How can I add some keyboard shortcuts (ctrl/alt/shift + something) to focus textboxes and/or perform button clicks?

And, ss it possible to have a Keyboard shortcut to call some method in my .cs code-behind?

Can anyone me tell me how?

This needs to be implemented with javascript, I would recommend jQuery. If you google jQuery hotkeys or jQuery keyboard shortcuts etc you should find alot of articles on this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM