How do I capture a keyboard shortcut, no matter which control has focus? I don’t want to go and write the same thing for each possible control that the user could give focus to. So how can I watch for a page-wide/control-independent shortcut?
Share
Add this code to the constructor it will handle a global key down and key
heres their events
you can ahndle your own logic inside this event.