
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@quickey/binder
Advanced tools
@quickey/binderSubscribe to keyboard key bindings
Quickey Binder will help you to craete keyboard key combination subscriptions. Want to know when a user presses Ctrl + H? or maybe you want to create an easteregg for your web app and want to know that a user entered a combination of keys? Quickey Binder is the tool you need.
Quickey Binder can be installed via npm:
$ npm install --save @quickey/binder
Or via yarn:
$ yarn add @quickey/binder
Or using the CDN:
<script src="https://unpkg.com/@quickey/binder@latest/umd/quickey.binder.js"></script>
Or the minified version:
<script src="https://unpkg.com/@quickey/binder@latest/umd/quickey.binder.min.js"></script>
import { KeyBinder } from "@quickey/binder";
// Or when using the UMD module
const { KeyBinder } = Quickey.binder;
const keyBinder = new KeyBinder();
keyBinder.delegate = {
didMatchFound: function(binder, matches, target) {
console.log(binder, matches, target);
}
}
keyBinder.bind({
keys: "I > D > D > Q > D"
});
keyBinder.bind({
keys: "Ctrl + H"
});
keyBinder.bind({
keys: "J"
});
For your convenience, we created this Fiddle, so you can take Quickey Binder for a quick spin.
Type: constructor
Creates a new KeyBinder.
Type: object - optional
Type: Array
A list of combinations to bind to. See keyBindingOptions for details.
Type: boolean
Should the key binder listen or halt key bindings.
Type: EventTarget
KeyBinder creates a Keyboard under the hood, this is the keyboard's EventTarget.
All options are optionals
Disables the key binder.
Enables the key binder.
Subscribe to key binding.
Type: object
Type: string - optional
You can supply an id to the key binding so you can remove it later if you want to.
Type: string
The combination of keys to bind to.
For Combination binding (hold them together to activate) create a list of keys separated with the + sign. For example:
Ctrl + H, Ctrl + Alt + Delete, Shift + R
For Stream binding (enter one after another to activate) create a list of keys separated with the > sign. For example:
I > D > D > Q > D, Ctrl > Ctrl, H > E > L > L > O
For Single binding (enter one key) supply the key you want to bind to. For example:
J, F, K
See this list for uniqe key options.
Type: Array - optional
You can supply a list of keyBindingOptions to the alias option to create aliases with this binding.
Type: number
The delay between key strokes when using Stream bindings.
Type: boolean
In Combination bindings, strict mode will activate only if the binded keys are the only active keys in the keyboard.
In Stream bindings, each key must be released before the next one is active.
In Single bindings, only one key must to be active.
Unsubscribe from key binding.
Type: string
Unsubscribe all key bindings.
Unsubscribe all key bindings and destroys the Keyboard.
Type: boolean
Get the key binder disabled state.
Type: object
Attach a delegate to KeyBinder instance.
This function gets called each time a subscribed key binding is detected.
Type: function
Type: object
The key binder instance in which the detection occurred.
Type: Array
A list of key binding matches.
Type: EventTarget
The key binder keyboard target.
← Go back to Quickey
FAQs
Subscribe to keyboard key bindings
We found that @quickey/binder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.