jEscape

This extension captures all the keydown events faster and less time writing code, you'll profit.
Download the latest version:

jEscape.js jEscape.min.js

Methods

.escape(callback function); .removeEscape();
Arguments Type Description
callback function After press esc button than execute callback function

How it works

<script> $(document).ready(function() { $('#header').escape(function() { $('#title').css('background-color', 'red'); }); $('#header').removeEscape(); }); </script>

Try this for press ESC button.

Setup

<script src="http://code.jquery.com/jquery-1.6.1.min.js">
<script type="text/javascript" src="jescape.js">

Use $().escape(function(){ /*TODO: Add your code*/ }); on elements when DOM is ready

<script>
$(function(){
  $('a.anything').escape(function() { alert('TEST'); });
});
</script>

Changelog

v.0.2
Reverse executing
Remove ESC functions
v.0.1
Adding array all ESC handler functions
Executing