Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
backbone-hotkeys
Advanced tools
#About **Backbone Hotkeys** is an extension to the standard Backbone View which lets you easily add and remove handlers for keyboard events supporting almost any key combination. Uses the *jquery.hotkey.js* library written by: [John Resig] (http://
#About Backbone Hotkeys is an extension to the standard Backbone View which lets you easily add and remove handlers for keyboard events supporting almost any key combination. Uses the jquery.hotkey.js library written by: [John Resig] (http://github.com/jeresig/jquery.hotkeys).
Supported types are 'keydown'
and 'keyup'
.
Include jquery.hotkeys.js and backbone-hotkeys.js after backbone.js in your app.
App.SomeView = Backbone.View.extend({
el: 'some-container',
events: {
'keyup[esc] body': 'someMethod',
'keyup[Alt+m] body': 'someMethod',
'keyup[Ctrl+left] body': 'someMethod'
}
});
If a selector is defined on a hotkey event then it is used as a filter for the target function.
There are 4 arguments in the events binding, which are:
keyup
: when key action should trigger the event[esc]
: the key (or key-combination, separated with +) to trigger the eventbody
: the DOM element this should bind to (ie. event must bubble up to this).someMethod
: The method to execute when a matching key combination is found (same as normal Backbone events).Works with jQuery 1.8.3 and Backbone 1.1.2.
document
- see #4.document
as default and added jQuery selector parameter as filter for target function.FAQs
#About **Backbone Hotkeys** is an extension to the standard Backbone View which lets you easily add and remove handlers for keyboard events supporting almost any key combination. Uses the *jquery.hotkey.js* library written by: [John Resig] (http://
We found that backbone-hotkeys 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.