Skip to content

segment-boneyard/on-escape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

on-escape

Attach an escape key handler.

Installation

$ component install segmentio/on-escape

API

onEscape(fn)

Bind a handler fn(event) to be called when the ESC key is pressed.

.unbind(fn)

Unbinds a handler fn.

.bind(fn)

For symmetry.

License

MIT