Socket
Book a DemoInstallSign in
Socket

@cerebral/shortcuts

Package Overview
Dependencies
Maintainers
5
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cerebral/shortcuts

Cerebral module to fire signals bound to keyboard shortcuts.

latest
Source
npmnpm
Version
3.2.2
Version published
Maintainers
5
Created
Source

@cerebral/shortcuts

Install

NPM

npm install @cerebral/shortcuts

Description

This is a tiny module that allows you to bind keyboard shortcuts to Cerebral signals.

It's created using a very nice library called "shortway" by Thiago Santos

Instantiate

import shortcuts from '@cerebral/shortcuts'

const controller = Controller({
  signals: {
    testSignal: () => console.log('shortcut pressed!')
  },
  modules: {
    shortcuts: shortcuts({
      'ctrl+s': 'testSignal'
    })
  }
})

Keywords

cerebral

FAQs

Package last updated on 18 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