Implementing shortcut keys in a webpage

前端 未结 7 2190
有刺的猬
有刺的猬 2021-02-08 04:26

I was thinking of implementing shortcut keys in a pet web application, I am developing for me. I am using c# and asp.net.

I have seen very few web-sites( frankly I reme

相关标签:
7条回答
  • 2021-02-08 05:02

    In order to implement this you need to register your required keyboard key combinations with JavaScript. It's like registering action listeners in C# for certain events. First URL I found on Google here seemed to have a good overview: Handling Keyboard Shortcuts in JavaScript.

    Once keyboard events are registered you can then use the JavaScript to invoke AJAXy (technically JSON calls I think) operations on your ASP.net backend.

    0 讨论(0)
提交回复
热议问题