Welcome to the #resistance.

Stimulus Connect is the release tracker and news aggregator for Stimulus and its surrounding ecosystem, including StimulusReflex and CableReady.

stimulus-hotkeys 1.0.4

A Stimulus controller for mapping keystrokes to behaviors

leastbad leastbad

Published — about 1 year ago
Updated — about 6 hours ago

commandshotkeyskeystrokestimulusstimulusjs

https://leastbad.com/

https://github.com/leastbad/stimulus-hotkeys

https://github.com/leastbad/stimulus-hotkeys/issues

MIT

Controllers available: hotkeys

Requires Stimulus 2.0.0

 

Installation

Shell
yarn remove stimulus
yarn add https://github.com/stimulusjs/dev-builds/archive/b8cc8c4/stimulus.tar.gz
yarn add stimulus-hotkeys
index.js
import { Application } from 'stimulus'
import { definitionsFromContext } from 'stimulus/webpack-helpers'
import Hotkeys from 'stimulus-hotkeys'
const application = Application.start()
const context = require.context('controllers', true, /_controller.js$/)
application.load(definitionsFromContext(context))
application.register('hotkeys', Hotkeys)

Not using webpack? No problem.

  • hotkeys-js
  • stimulus

Recently Updated

New Releases

Search by Tag

Swiperactioncableajaxanimated-numberapp-bridgeasynchronously-load-HTMLaudioautocompleteautosavebehaviorbindingbootstrapbulmacablecablereadycallbackscarouselcharacter-counterchartchart.jschatchattercheck-allcheckboxcheckbox-select-allcommandscommunicationcomponentscompositioncontent-loadercontrollerdata-bindingdatatablesdevelopmentdistance-from-nowdjangodomelementseventexistenceflatpickrformgetaddress.iogridheaderhelpersherokuheyhidehotkeysimageinputiosjavascriptjerksjestkeystrokelazylightboxlightgallerymapsmodalmorphdommp3on/offoverlaypaginationparticles.jsplaceholderpopoverprefetchprogress-barrailsrails-remoterails-ujsreactivereflexremoteresource-hintsresponsiverevealrollup-pluginrollup.jsrubyscroll-progressshopifyshortcutshowsliderssoundspeedssrstickystimulusstimulus-controllerstimulus-jsstimulus-reflexstimulus-togglestimulus.jsstimulus_reflexstimulusjsstimulusreflexstripestripe.jssurplusswiperjsswitchtabletabstailwindcsstestingtextareatime-agotoggletransitionsturbolinksujsuppercaseutilitesutilityuxvalidationwebdevwebsockets