Skip to content

Instantly share code, notes, and snippets.

@KensoDev
Created March 27, 2012 16:26
Show Gist options
  • Save KensoDev/2217685 to your computer and use it in GitHub Desktop.
Save KensoDev/2217685 to your computer and use it in GitHub Desktop.
function customKeyFilter(event) {
var tagName = (event.target || event.srcElement).tagName;
return (tagName == 'INPUT' || tagName == 'SELECT' || tagName == 'TEXTAREA');
}
key.filter = customKeyFilter;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment