I'm currently developing an extension for chrome that takes action based on shortcut keys for specific web pages. Right now I'm using the "command" API to tell when a shortcut key is pressed ( https://developer.chrome.com/extensions/commands ). Is there any way to tell if a key is pressed and held? I only want this specific action to take place when that is the case.
You can use jQuery.Hotkeys
jQuery Hotkeys lets you watch for keyboard events anywhere in your code supporting almost any key combination.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With