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

About

Attach an escape key handler.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •