Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.48 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.48 KB

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