Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hotkeysengine

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hotkeysengine

Plugin for hot keys configuration on a web app

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Hot Keys Engine

Javascript plugin for creating hot keys

Add this script to your web page. In a separate js file register the different actions to associate to the keyboard keys and modifiers.

For the plugin to recognize your custom actions you have to use the HotKeys.attach function, which receives an array of hot key jsons. The format of a hot key json must be:

{
  "key": HotKeys.Keys.d,
  "modifiers": [HotKeys.Keys.Shift], //Optional
  "callback": function () {
      //your code
  }
  "params": {
    //parameters that your function will receive
  }
}
HotKeys.attach([
  //hot key jsons
], this);

To remove a custom hot key

HotKeys.detach([
  //hot key jsons
], this);

To add the plugin key listener

HotKeys.addKeyListener()

Keywords

FAQs

Package last updated on 14 Apr 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc