/brisky-events

Primary LanguageJavaScriptISC LicenseISC

brisky-events

Build Status js-standard-style npm version Coverage Status

const render = require('brisky/render')

const app = render({
  on: {
    down (e) {
      console.log('mouse-down triggered!', e)
    }
  }
})

Methods:

By default all DOM events are caught and handled as expected. Some events are handled, as can be seen in this repository. Feel free to add an issue here, if you notice something is missing or not working as expected.

Normal events:

Special events:

  • drag
  • rightclick
  • forcedown
  • forceup
  • forcechanged

Keyboard events:

  • arrowleft
  • arrowright
  • arrowup
  • arrowdown
  • back
  • menu
  • enter
  • rewind
  • playbtn
  • forward
  • space