on-escape
v2.0.0
Published
Attach an escape key handler
Downloads
13
Readme
on-escape
Attach an escape key handler.
Rewrite of segmentio/on-escape for npm+browserify support.
Installation
$ npm install on-escapeAPI
var onEscape = require('on-escape');onEscape(fn)
Binds a handler fn(event) to be called when the ESC key is pressed.
Alias: onEscape.bind(fn)
onEscape.unbind(fn)
Unbinds a handler fn.
