2.0.0 • Published 7 years ago

on-escape v2.0.0

Weekly downloads
10
License
MIT
Repository
github
Last release
7 years ago

on-escape

Dependency Status

Attach an escape key handler.

Rewrite of segmentio/on-escape for npm+browserify support.

Installation

$ npm install on-escape

API

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.

2.0.0

7 years ago

1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago