This feature need jQuery or Zepto.
usage:
jwerty.key('ctrl+enter', function(){...}, '.element_currentlynot exist');
jwerty.key('ctrl+enter', function(){...}, '.element_currentlynot exist_too', '.wrap_element');
and we can use like this:
$('.wrap_element').jwerty('ctrl+enter', function(){});
$('.wrap_element').jwerty('ctrl+enter', '.element_currently_not_exist', function(){});
This feature need jQuery or Zepto. usage: jwerty.key('ctrl+enter', function(){...}, '.element_currentlynot exist'); jwerty.key('ctrl+enter', function(){...}, '.element_currentlynot exist_too', '.wrap_element');
and we can use like this: $('.wrap_element').jwerty('ctrl+enter', function(){}); $('.wrap_element').jwerty('ctrl+enter', '.element_currently_not_exist', function(){});