Welcome to the #resistance.

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

stimulus-shortcut 1.0.2

A Stimulus controller for mapping keystrokes to element events

leastbad leastbad

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

eventhotkeysshortcutstimulusstimulusjs

https://leastbad.com/

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

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

MIT

Controllers available: shortcut

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-shortcut
index.js
import { Application } from 'stimulus'
import { definitionsFromContext } from 'stimulus/webpack-helpers'
import Shortcut from 'stimulus-shortcut'
const application = Application.start()
const context = require.context('controllers', true, /_controller.js$/)
application.load(definitionsFromContext(context))
application.register('shortcut', Shortcut)

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